lkml.org 
[lkml]   [2017]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC tip/core/rcu 12/15] lib/assoc_array: Remove smp_read_barrier_depends()
On Wed, Oct 11, 2017 at 10:06:31AM -0700, Paul E. McKenney wrote:
> On Wed, Oct 11, 2017 at 06:54:05PM +0200, Peter Zijlstra wrote:
> > On Wed, Oct 11, 2017 at 09:47:48AM -0700, Paul E. McKenney wrote:
> > > Interesting. Do we currently have any dependencies headed by
> > > this_cpu_read()?
> >
> > Nope, but almost, look for: cpufreq_update_util_data.
>
> This, you mean?
>
> data = rcu_dereference_sched(*this_cpu_ptr(&cpufreq_update_util_data));
>
> True, a non-RCU dependency use case would want to use ACCESS_ONCE()
> in the new regime.

Right... s/ACCESS_ONCE()/READ_ONCE()/

Thanx, Paul

\
 
 \ /
  Last update: 2017-10-11 19:16    [W:0.084 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site