summaryrefslogtreecommitdiff
path: root/core/idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/idle.c')
-rw-r--r--core/idle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/idle.c b/core/idle.c
index 7f76a14c..c8050554 100644
--- a/core/idle.c
+++ b/core/idle.c
@@ -24,7 +24,7 @@
#define TICKS_TO_IDLE 4 /* Also in idle.inc */
-extern jiffies_t _IdleTimer;
+static jiffies_t _IdleTimer;
__export uint16_t NoHalt = 0;
int (*idle_hook_func)(void);
@@ -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