aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/timer.c')
-rw-r--r--kernel/timer.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/timer.c b/kernel/timer.c
index 09bca8ce9771..a860bba34412 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -739,7 +739,7 @@ __mod_timer(struct timer_list *timer, unsigned long expires,
739 739
740 cpu = smp_processor_id(); 740 cpu = smp_processor_id();
741 741
742#if defined(CONFIG_NO_HZ) && defined(CONFIG_SMP) 742#if defined(CONFIG_NO_HZ_COMMON) && defined(CONFIG_SMP)
743 if (!pinned && get_sysctl_timer_migration() && idle_cpu(cpu)) 743 if (!pinned && get_sysctl_timer_migration() && idle_cpu(cpu))
744 cpu = get_nohz_timer_target(); 744 cpu = get_nohz_timer_target();
745#endif 745#endif
@@ -931,14 +931,14 @@ void add_timer_on(struct timer_list *timer, int cpu)
931 debug_activate(timer, timer->expires); 931 debug_activate(timer, timer->expires);
932 internal_add_timer(base, timer); 932 internal_add_timer(base, timer);
933 /* 933 /*
934 * Check whether the other CPU is idle and needs to be 934 * Check whether the other CPU is in dynticks mode and needs
935 * triggered to reevaluate the timer wheel when nohz is 935 * to be triggered to reevaluate the timer wheel.
936 * active. We are protected against the other CPU fiddling 936 * We are protected against the other CPU fiddling
937 * with the timer by holding the timer base lock. This also 937 * with the timer by holding the timer base lock. This also
938 * makes sure that a CPU on the way to idle can not evaluate 938 * makes sure that a CPU on the way to stop its tick can not
939 * the timer wheel. 939 * evaluate the timer wheel.
940 */ 940 */
941 wake_up_idle_cpu(cpu); 941 wake_up_nohz_cpu(cpu);
942 spin_unlock_irqrestore(&base->lock, flags); 942 spin_unlock_irqrestore(&base->lock, flags);
943} 943}
944EXPORT_SYMBOL_GPL(add_timer_on); 944EXPORT_SYMBOL_GPL(add_timer_on);
@@ -1189,7 +1189,7 @@ static inline void __run_timers(struct tvec_base *base)
1189 spin_unlock_irq(&base->lock); 1189 spin_unlock_irq(&base->lock);
1190} 1190}
1191 1191
1192#ifdef CONFIG_NO_HZ 1192#ifdef CONFIG_NO_HZ_COMMON
1193/* 1193/*
1194 * Find out when the next timer event is due to happen. This 1194 * Find out when the next timer event is due to happen. This
1195 * is used on S/390 to stop all activity when a CPU is idle. 1195 * is used on S/390 to stop all activity when a CPU is idle.