aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/kernel/process.c')
-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)
235 235
236void default_idle(void) 236void default_idle(void)
237{ 237{
238 unsigned long long nsecs;
239
238 while(1) { 240 while(1) {
239 /* endless idle loop with no priority at all */ 241 /* endless idle loop with no priority at all */
240 242
@@ -246,9 +248,8 @@ void default_idle(void)
246 schedule(); 248 schedule();
247 249
248 tick_nohz_stop_sched_tick(); 250 tick_nohz_stop_sched_tick();
249 switch_timers(1); 251 nsecs = disable_timer();
250 idle_sleep(10); 252 idle_sleep(nsecs);
251 switch_timers(0);
252 tick_nohz_restart_sched_tick(); 253 tick_nohz_restart_sched_tick();
253 } 254 }
254} 255}