Skip to content

Commit

Permalink
Merge branch 'sh/stable-updates'
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Mundt committed Dec 21, 2009
2 parents 5d9b4b1 + 73a38b8 commit d0b873f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sh/kernel/idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ void default_idle(void)
clear_thread_flag(TIF_POLLING_NRFLAG);
smp_mb__after_clear_bit();

set_bl_bit();
if (!need_resched()) {
local_irq_enable();
cpu_sleep();
} else
local_irq_enable();

set_thread_flag(TIF_POLLING_NRFLAG);
clear_bl_bit();
} else
poll_idle();
}
Expand Down

0 comments on commit d0b873f

Please sign in to comment.