Commit 2e214953 authored by Nick Piggin's avatar Nick Piggin Committed by Linus Torvalds

[PATCH] h8300 sleep problem

h8300 appears to sleep (halt) when need_resched IS set.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent adaa765d
...@@ -54,7 +54,7 @@ asmlinkage void ret_from_fork(void); ...@@ -54,7 +54,7 @@ asmlinkage void ret_from_fork(void);
void default_idle(void) void default_idle(void)
{ {
while(1) { while(1) {
if (need_resched()) { if (!need_resched()) {
local_irq_enable(); local_irq_enable();
__asm__("sleep"); __asm__("sleep");
local_irq_disable(); local_irq_disable();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment