diff options
Diffstat (limited to 'kernel/time/tick-sched.c')
-rw-r--r-- | kernel/time/tick-sched.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 021d2f878f19..3e216e01bbd1 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c | |||
@@ -774,7 +774,6 @@ void tick_setup_sched_timer(void) | |||
774 | { | 774 | { |
775 | struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched); | 775 | struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched); |
776 | ktime_t now = ktime_get(); | 776 | ktime_t now = ktime_get(); |
777 | u64 offset; | ||
778 | 777 | ||
779 | /* | 778 | /* |
780 | * Emulate tick processing via per-CPU hrtimers: | 779 | * Emulate tick processing via per-CPU hrtimers: |
@@ -784,10 +783,6 @@ void tick_setup_sched_timer(void) | |||
784 | 783 | ||
785 | /* Get the next period (per cpu) */ | 784 | /* Get the next period (per cpu) */ |
786 | hrtimer_set_expires(&ts->sched_timer, tick_init_jiffy_update()); | 785 | hrtimer_set_expires(&ts->sched_timer, tick_init_jiffy_update()); |
787 | offset = ktime_to_ns(tick_period) >> 1; | ||
788 | do_div(offset, num_possible_cpus()); | ||
789 | offset *= smp_processor_id(); | ||
790 | hrtimer_add_expires_ns(&ts->sched_timer, offset); | ||
791 | 786 | ||
792 | for (;;) { | 787 | for (;;) { |
793 | hrtimer_forward(&ts->sched_timer, now, tick_period); | 788 | hrtimer_forward(&ts->sched_timer, now, tick_period); |