cpuidle: fix fallback mechanism for suspend to idle in absence of enter_freeze
[deliverable/linux.git] / kernel / sched / idle.c
index 34852ee70d549848d5793517677c276cdb7e98e5..30f7b6ad392088b894581c13481d58c599b5c78c 100644 (file)
@@ -162,7 +162,7 @@ static void cpuidle_idle_call(void)
         */
        if (idle_should_freeze()) {
                entered_state = cpuidle_enter_freeze(drv, dev);
-               if (entered_state >= 0) {
+               if (entered_state > 0) {
                        local_irq_enable();
                        goto exit_idle;
                }
This page took 0.024077 seconds and 5 git commands to generate.