Skip to content

Commit

Permalink
[PATCH] powerpc: Ensure runlatch is off in the idle loop
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anton Blanchard authored and Paul Mackerras committed Apr 13, 2006
1 parent b86756a commit ddafddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/kernel/idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
/*
Expand Down

0 comments on commit ddafddc

Please sign in to comment.