cpuidle: stop depending on pm_idle
[deliverable/linux.git] / arch / arm / kernel / process.c
index 5e1e541972277f38a123d7964fca081629584d50..d7ee0d4c072d8dba133b8160ef1ed590e14638a0 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/uaccess.h>
 #include <linux/random.h>
 #include <linux/hw_breakpoint.h>
+#include <linux/cpuidle.h>
 
 #include <asm/cacheflush.h>
 #include <asm/leds.h>
@@ -196,7 +197,8 @@ void cpu_idle(void)
                                cpu_relax();
                        } else {
                                stop_critical_timings();
-                               pm_idle();
+                               if (cpuidle_call_idle())
+                                       pm_idle();
                                start_critical_timings();
                                /*
                                 * This will eventually be removed - pm_idle
This page took 0.024769 seconds and 5 git commands to generate.