Skip to content

Commit

Permalink
timers: Remove duplicate setting of new_base in __mod_timer()
Browse files Browse the repository at this point in the history
new_base is set using per_cpu(tvec_bases, cpu) after selecting the
desired value of cpu immediately below so this line is a unnecessary.

Signed-off-by: Simon Horman <horms@verge.net.au>
LKML-Reference: <20091217001542.GD25317@verge.net.au>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Simon Horman authored and Thomas Gleixner committed Dec 17, 2009
1 parent bb6eddf commit cf1e367
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,6 @@ __mod_timer(struct timer_list *timer, unsigned long expires,

debug_activate(timer, expires);

new_base = __get_cpu_var(tvec_bases);

cpu = smp_processor_id();

#if defined(CONFIG_NO_HZ) && defined(CONFIG_SMP)
Expand Down

0 comments on commit cf1e367

Please sign in to comment.