diff options
author | Anton Blanchard <anton@samba.org> | 2006-04-02 11:54:09 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-04-13 18:27:22 +0200 |
commit | ddafddcfc78aab994cf95922befc54d98aaf371b (patch) | |
tree | 9dd0c9fd76a91ca154fd2cf25e7305d4c59c3c5c /arch/powerpc/kernel/idle.c | |
parent | powerpc: Fix CHRP booting - needs a define_machine call (diff) | |
download | linux-ddafddcfc78aab994cf95922befc54d98aaf371b.tar.xz linux-ddafddcfc78aab994cf95922befc54d98aaf371b.zip |
[PATCH] 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.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/idle.c')
-rw-r--r-- | arch/powerpc/kernel/idle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/idle.c b/arch/powerpc/kernel/idle.c index e9f321d74d85..d491052c8e0c 100644 --- a/arch/powerpc/kernel/idle.c +++ b/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); /* |