Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181036
b: refs/heads/master
c: d0b873f
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Dec 21, 2009
1 parent 8712ac5 commit e61aa92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5d9b4b19f118abfb75e352841f7bf74580d7e427
refs/heads/master: d0b873fc73b793277c8a0824ce986b5bfeaef157
2 changes: 2 additions & 0 deletions trunk/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 e61aa92

Please sign in to comment.