uml: tickless support
[linux-2.6.git] / arch / um / kernel / process.c
index 56d75af..aef494b 100644 (file)
@@ -13,6 +13,7 @@
 #include "linux/ptrace.h"
 #include "linux/random.h"
 #include "linux/sched.h"
+#include "linux/tick.h"
 #include "linux/threads.h"
 #include "asm/pgtable.h"
 #include "asm/uaccess.h"
@@ -244,9 +245,11 @@ void default_idle(void)
                if (need_resched())
                        schedule();
 
+               tick_nohz_stop_sched_tick();
                switch_timers(1);
                idle_sleep(10);
                switch_timers(0);
+               tick_nohz_restart_sched_tick();
        }
 }