Skip to content

Commit

Permalink
x86: enable irq in default_idle on 64-bit
Browse files Browse the repository at this point in the history
local_irq_enable() is missing after sched_clock_idle_wakeup_event().

Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Hiroshi Shimamoto authored and Ingo Molnar committed Jan 30, 2008
1 parent 5ee613b commit 39d44a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/process_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ static void default_idle(void)
t1 = ktime_get();
t1n = ktime_to_ns(t1);
sched_clock_idle_wakeup_event(t1n - t0n);
} else
local_irq_enable();
}
local_irq_enable();
current_thread_info()->status |= TS_POLLING;
}

Expand Down

0 comments on commit 39d44a5

Please sign in to comment.