From 02deada161fdc5639159ca4e3991665d6cc46f2d Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Wed, 3 Jul 2013 22:09:15 +0100 Subject: idle: enable interrupts before idling Users are *still* reporting executing __idle() with interrupts disabled, which ultimately leads to a hang. Just enable them explicitly before idling. Cc: H. Peter Anvin Signed-off-by: Matt Fleming --- core/idle.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/idle.c b/core/idle.c index 7f76a14c..16d10d58 100644 --- a/core/idle.c +++ b/core/idle.c @@ -43,6 +43,7 @@ __export void __idle(void) if (idle_hook_func && idle_hook_func()) return; /* Nonzero return = do not idle */ + sti(); if (NoHalt) cpu_relax(); else -- cgit v1.2.1