cpuidle: coupled: fix sleeping while atomic in cpu notifier
[deliverable/linux.git] / drivers / cpuidle / coupled.c
index 2c9bf2692232e51a66e5455368d9881383ccfc2f..c24dda03c143eec8845c8162e155c2e0fde16067 100644 (file)
@@ -678,6 +678,18 @@ static int cpuidle_coupled_cpu_notify(struct notifier_block *nb,
        int cpu = (unsigned long)hcpu;
        struct cpuidle_device *dev;
 
+       switch (action & ~CPU_TASKS_FROZEN) {
+       case CPU_UP_PREPARE:
+       case CPU_DOWN_PREPARE:
+       case CPU_ONLINE:
+       case CPU_DEAD:
+       case CPU_UP_CANCELED:
+       case CPU_DOWN_FAILED:
+               break;
+       default:
+               return NOTIFY_OK;
+       }
+
        mutex_lock(&cpuidle_lock);
 
        dev = per_cpu(cpuidle_devices, cpu);
This page took 0.036384 seconds and 5 git commands to generate.