]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] powerpc: Ensure runlatch is off in the idle loop
authorAnton Blanchard <anton@samba.org>
Sun, 2 Apr 2006 09:54:09 +0000 (19:54 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 13 Apr 2006 16:27:22 +0000 (09:27 -0700)
Since external and decrementer interrupts set the runlatch on, we need
to ensure its set off again in the idle loop. At the moment we dont turn
it off in the inner loop.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/idle.c

index e9f321d74d85293323714af7b2bffa950e8760e6..d491052c8e0c5d3ab8c5ee1cfb70d7c1a93d45c5 100644 (file)
@@ -50,9 +50,9 @@ void cpu_idle(void)
 
        set_thread_flag(TIF_POLLING_NRFLAG);
        while (1) {
-               ppc64_runlatch_off();
-
                while (!need_resched() && !cpu_should_die()) {
+                       ppc64_runlatch_off();
+
                        if (ppc_md.power_save) {
                                clear_thread_flag(TIF_POLLING_NRFLAG);
                                /*