]> Pileus Git - ~andy/linux/commit
cpuidle: call cpuidle_get_driver() from after taking cpuidle_driver_lock
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Oct 2013 15:56:50 +0000 (21:26 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Oct 2013 00:21:23 +0000 (01:21 +0100)
commit0d09d3125642ac1f02937e577819dbc515291d93
treef89ef56df320e0da2757642fc42828adcc24021e
parent6d281e97a1c53abb73477a34806c1a000409c4b9
cpuidle: call cpuidle_get_driver() from after taking cpuidle_driver_lock

There are a few cpuidle_get_driver() calls that aren't made under
cpuidle_driver_lock which is incorrect.

Fix them by calling cpuidle_get_driver() after taking cpuidle_driver_lock.

Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/driver.c
drivers/cpuidle/sysfs.c