]> git.karo-electronics.de Git - linux-beck.git/blobdiff - kernel/time/timer.c
timer: Store cpu-number in struct tvec_base
[linux-beck.git] / kernel / time / timer.c
index 3bb01a323b2a3e0ae9291271f4dc0322f01bfd80..9e5f4f25dcc03957da8b19960ce038a2a030a3e9 100644 (file)
@@ -82,6 +82,7 @@ struct tvec_base {
        unsigned long next_timer;
        unsigned long active_timers;
        unsigned long all_timers;
+       int cpu;
        struct tvec_root tv1;
        struct tvec tv2;
        struct tvec tv3;
@@ -1568,6 +1569,7 @@ static int init_timers_cpu(int cpu)
                }
                spin_lock_init(&base->lock);
                tvec_base_done[cpu] = 1;
+               base->cpu = cpu;
        } else {
                base = per_cpu(tvec_bases, cpu);
        }