diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2012-10-31 16:44:46 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-15 00:34:22 +0100 |
commit | 41682032715c2c969357c81391a442a24dd1c2c2 (patch) | |
tree | 8ffc83dc3ba0a4feea15da36c7f2da604be06513 /usr | |
parent | 42f67f2acab2b7179c0d1ab234869e391448dfa6 (diff) | |
download | linux-3.10-41682032715c2c969357c81391a442a24dd1c2c2.tar.gz linux-3.10-41682032715c2c969357c81391a442a24dd1c2c2.tar.bz2 linux-3.10-41682032715c2c969357c81391a442a24dd1c2c2.zip |
cpuidle: move driver checking within the lock section
The code is racy and the check with cpuidle_curr_driver should be
done under the lock.
I don't find a path in the different drivers where that could happen
because the arch specific drivers are written in such way it is not
possible to register a driver while it is unregistered, except maybe
in a very improbable case when "intel_idle" and "processor_idle" are
competing. One could unregister a driver, while the other one is
registering.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Peter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions