projects/linux·commit cf1e367e

timers: Remove duplicate setting of new_base in __mod_timer()

cf1e367e · Simon Horman <[email protected]> · 2009-12-17 11:15:42 +11:00

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 <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Commit
cf1e367ee84e02ac349ad0858eb65e8a6a511c8b
Parents
bb6eddf7

Changes

1 files changed · +0 −2

FileStatusAddDelContent
kernel/timer.cmodified+0−2View file

kernel/timer.c

View file
diff --git a/kernel/timer.c b/kernel/timer.c
index 5db5a8d..15533b7 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -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)