[PATCH] h8300 sleep problem
h8300 appears to sleep (halt) when need_resched IS set. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
adaa765d76
commit
2e21495329
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ asmlinkage void ret_from_fork(void);
|
|||
void default_idle(void)
|
||||
{
|
||||
while(1) {
|
||||
if (need_resched()) {
|
||||
if (!need_resched()) {
|
||||
local_irq_enable();
|
||||
__asm__("sleep");
|
||||
local_irq_disable();
|
||||
|
|
Loading…
Reference in a new issue