Re: [PATCH 1/6] cpufreq: Reduce cpufreq_update_util() overhead a bit

Peter Zijlstra
2016-03-03T13:04:30Z

On Thu, Mar 03, 2016 at 11:47:01AM +0000, Juri Lelli wrote:

> > +#ifdef CONFIG_LOCKDEP
> > + WARN_ON(debug_locks && !rcu_read_lock_sched_held());
> > +#endif
> >
> > data = rcu_dereference(*this_cpu_ptr(&cpufreq_update_util_data));
>
> I think you need to s/rcu_dereference/rcu_dereference_sched/ here or
> RCU will complain:

Ah, indeed ;-)