[PATCH 181/228] cpufreq: move freq change notifications to cpufreq core

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Sep 13 11:53:13 EDT 2013


On Fri, Sep 13, 2013 at 06:32:07PM +0530, Viresh Kumar wrote:
> +		read_lock_irqsave(&cpufreq_driver_lock, flags);
> +		notify = !(cpufreq_driver->flags & CPUFREQ_ASYNC_NOTIFICATION);
> +		read_unlock_irqrestore(&cpufreq_driver_lock, flags);

I don't think this needs to be read under a lock - if this bit changes
dynamically, then there's something very wrong.



More information about the linux-arm-kernel mailing list