diff --git a/kernel/timer.c b/kernel/timer.c index 6dfdb72828ff..dd93d90f026e 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -1680,12 +1680,12 @@ static int __cpuinit init_timers_cpu(int cpu) boot_done = 1; base = &boot_tvec_bases; } + spin_lock_init(&base->lock); tvec_base_done[cpu] = 1; } else { base = per_cpu(tvec_bases, cpu); } - spin_lock_init(&base->lock); for (j = 0; j < TVN_SIZE; j++) { INIT_LIST_HEAD(base->tv5.vec + j);