forked from rubenslte/android_kernel_samsung_msm8226
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. Change-Id: I3f5b09334e172d1d62620a5b9929942651f0620c 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> Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>