diff mbox

Warnings: pm branch

Message ID 636c5030909301032q4d39dd3ar7ee2fb522f009910@mail.gmail.com (mailing list archive)
State Superseded
Headers show

Commit Message

Kevin Hilman Sept. 30, 2009, 5:32 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
index 8504a21..910c49d 100644
--- a/drivers/cpuidle/cpuidle.c
+++ b/drivers/cpuidle/cpuidle.c
@@ -75,8 +75,11 @@  static void cpuidle_idle_call(void)
 #endif
 	/* ask the governor for the next state */
 	next_state = cpuidle_curr_governor->select(dev);
-	if (need_resched())
+	if (need_resched()) {
+		local_irq_enable();
 		return;
+	}
+
 	target_state = &dev->states[next_state];

 	/* enter the state and update stats */