]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/kernel/process.c
x86: make poll_idle behave more like the other idle methods
[linux-2.6-omap-h63xx.git] / arch / x86 / kernel / process.c
index 7fc4d5b0a6a0f99a4d1d9c4df685a5a4d3a135bb..4e09d26748cfc6706e5ff9df932767f26398e2be 100644 (file)
@@ -185,7 +185,8 @@ static void mwait_idle(void)
 static void poll_idle(void)
 {
        local_irq_enable();
-       cpu_relax();
+       while (!need_resched())
+               cpu_relax();
 }
 
 /*