LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: Ensure runlatch is off in the idle loop
@ 2006-04-02  9:54 Anton Blanchard
  0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2006-04-02  9:54 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: paulus


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>
---

Index: build/arch/powerpc/kernel/idle.c
===================================================================
--- build.orig/arch/powerpc/kernel/idle.c	2006-03-30 10:08:47.000000000 +1100
+++ build/arch/powerpc/kernel/idle.c	2006-04-01 21:35:54.000000000 +1100
@@ -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);
 				/*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-02  9:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-02  9:54 [PATCH] powerpc: Ensure runlatch is off in the idle loop Anton Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox