Skip to contentSkip to conversation

powerpc: Ensure runlatch is off in the idle loop

PATCH New Anton Blanchard 1 participant 1 message Apr 2, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Ensure runlatch is off in the idle loop

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.

---

arch/powerpc/kernel/idle.c +2 -2
Index: build/arch/powerpc/kernel/idle.c
===================================================================
@@ -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);
 				/*