[syslinux:elflink] idle: enable interrupts before idling

syslinux-bot for Matt Fleming matt.fleming at intel.com
Wed Jul 3 14:36:04 PDT 2013


Commit-ID:  02deada161fdc5639159ca4e3991665d6cc46f2d
Gitweb:     http://www.syslinux.org/commit/02deada161fdc5639159ca4e3991665d6cc46f2d
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Wed, 3 Jul 2013 22:09:15 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Wed, 3 Jul 2013 22:18:37 +0100

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 <hpa at zytor.com>
Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 core/idle.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/idle.c b/core/idle.c
index 7f76a14..16d10d5 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


More information about the Syslinux-commits mailing list