Re: [PATCH v2] cpufreq: stats: Walk online CPUs with CPU offline/online locked

From: Viresh Kumar
Date: Tue May 24 2016 - 08:17:25 EST


On 24-05-16, 14:13, Rafael J. Wysocki wrote:
> I don't really get it why you don't like get/put_online_cpus() so much.

Not that I don't like them, I just wanted to see if its possible to
work without any additional locking.

Anyway, so the first version of your patch did the get_online_cpus()
around a bigger section of the code instead of just the
for_each_online_cpu() loop. Should we change that?

--
viresh