summaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--arch/um/kernel/process.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c
index aef494b6b81a..0eae00b3e588 100644
--- a/arch/um/kernel/process.c
+++ b/arch/um/kernel/process.c
@@ -235,6 +235,8 @@ void initial_thread_cb(void (*proc)(void *), void *arg)
void default_idle(void)
{
+ unsigned long long nsecs;
+
while(1) {
/* endless idle loop with no priority at all */
@@ -246,9 +248,8 @@ void default_idle(void)
schedule();
tick_nohz_stop_sched_tick();
- switch_timers(1);
- idle_sleep(10);
- switch_timers(0);
+ nsecs = disable_timer();
+ idle_sleep(nsecs);
tick_nohz_restart_sched_tick();
}
}