aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/tick-sched.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index b711ffcb106c..fdcf3f93bb8d 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -155,7 +155,7 @@ void tick_nohz_update_jiffies(void)
155 touch_softlockup_watchdog(); 155 touch_softlockup_watchdog();
156} 156}
157 157
158void tick_nohz_stop_idle(int cpu) 158static void tick_nohz_stop_idle(int cpu)
159{ 159{
160 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu); 160 struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu);
161 161
@@ -559,6 +559,17 @@ static inline void tick_nohz_switch_to_nohz(void) { }
559#endif /* NO_HZ */ 559#endif /* NO_HZ */
560 560
561/* 561/*
562 * Called from irq_enter to notify about the possible interruption of idle()
563 */
564void tick_check_idle(int cpu)
565{
566#ifdef CONFIG_NO_HZ
567 tick_nohz_stop_idle(cpu);
568 tick_nohz_update_jiffies();
569#endif
570}
571
572/*
562 * High resolution timer specific code 573 * High resolution timer specific code
563 */ 574 */
564#ifdef CONFIG_HIGH_RES_TIMERS 575#ifdef CONFIG_HIGH_RES_TIMERS