diff options
author | Colin Cross <ccross@android.com> | 2012-08-15 20:10:50 (GMT) |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-08-17 17:37:01 (GMT) |
commit | 63c6ba4352009a5f85b32307c001abeb5baebd28 (patch) | |
tree | a3cf120e9c5caf74dd4704bc484f0f3930d433fa /drivers/idle | |
parent | 55d7ec4520e86d735d178c15d7df33d507bd43c6 (diff) | |
download | linux-63c6ba4352009a5f85b32307c001abeb5baebd28.tar.xz |
cpuidle: coupled: fix sleeping while atomic in cpu notifier
The cpu hotplug notifier gets called in both atomic and non-atomic
contexts, it is not always safe to lock a mutex. Filter out all events
except the six necessary ones, which are all sleepable, before taking
the mutex.
Signed-off-by: Colin Cross <ccross@android.com>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/idle')
0 files changed, 0 insertions, 0 deletions