commit | 2c39435458e6d5a42c2508c9f64e607d964a8a61 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Wed Aug 15 22:10:50 2012 +0200 |
committer | Jon Medhurst <tixy@linaro.org> | Mon Aug 20 17:35:46 2012 +0100 |
tree | 5be15e00eff07737d4a05f2552a90cfb7981f33c | |
parent | 5ecbc3b037bbaa7b827158d0a61cf9c926e11111 [diff] |
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>