lkml.org 
[lkml]   [2012]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH RFC tip/core/rcu] rcu: direct algorithmic SRCU implementation
From
Date
On Thu, 2012-02-16 at 05:50 -0500, Mathieu Desnoyers wrote:
> > Ah, so something like this?
> >
> > ACCESS_ONCE(this_cpu_ptr(sp->per_cpu_ref)->c[idx]) +=
> > SRCU_USAGE_COUNT + 1;
> >
> > Now that you mention it, this does look nicer, applied here and to
> > srcu_read_unlock().
>
> I think Peter refers to __this_cpu_add().

I'm not sure that implies the ACCESS_ONCE() thing


\
 
 \ /
  Last update: 2012-02-16 11:55    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site