aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@infradead.org>2010-07-28 00:02:10 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-08-02 15:45:58 -0400
commitaf5ab277ded04bd9bc6b048c5a2f0e7d70ef0867 (patch)
tree7c593610e47096dd6592b8dbfe166428cc079ed6 /kernel/time
parent2b08de0073a5697cf84d6f448d6dbc6cf02fc6b5 (diff)
clockevents: Remove the per cpu tick skew
Historically, Linux has tried to make the regular timer tick on the various CPUs not happen at the same time, to avoid contention on xtime_lock. Nowadays, with the tickless kernel, this contention no longer happens since time keeping and updating are done differently. In addition, this skew is actually hurting power consumption in a measurable way on many-core systems. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> LKML-Reference: <20100727210210.58d3118c@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/time')
-rw-r--r--kernel/time/tick-sched.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
index 813993b5fb61..74644ccd786c 100644
--- a/kernel/time/tick-sched.c
+++ b/kernel/time/tick-sched.c
@@ -780,7 +780,6 @@ void tick_setup_sched_timer(void)
780{ 780{
781 struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched); 781 struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched);
782 ktime_t now = ktime_get(); 782 ktime_t now = ktime_get();
783 u64 offset;
784 783
785 /* 784 /*
786 * Emulate tick processing via per-CPU hrtimers: 785 * Emulate tick processing via per-CPU hrtimers:
@@ -790,10 +789,6 @@ void tick_setup_sched_timer(void)
790 789
791 /* Get the next period (per cpu) */ 790 /* Get the next period (per cpu) */
792 hrtimer_set_expires(&ts->sched_timer, tick_init_jiffy_update()); 791 hrtimer_set_expires(&ts->sched_timer, tick_init_jiffy_update());
793 offset = ktime_to_ns(tick_period) >> 1;
794 do_div(offset, num_possible_cpus());
795 offset *= smp_processor_id();
796 hrtimer_add_expires_ns(&ts->sched_timer, offset);
797 792
798 for (;;) { 793 for (;;) {
799 hrtimer_forward(&ts->sched_timer, now, tick_period); 794 hrtimer_forward(&ts->sched_timer, now, tick_period);