timer: Fix hotplug regression
authorThomas Gleixner <tglx@linutronix.de>
Fri, 26 Jun 2015 20:08:38 +0000 (22:08 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 26 Jun 2015 20:58:06 +0000 (22:58 +0200)
commit24bfcb100959c8641a627b5604d967243f8f240c
tree587b67fe9ad3ac465f698585e820ab677d749f64
parent56a94f13919c0db5958611b388e1581b4852f3c9
timer: Fix hotplug regression

The recent timer wheel rework removed the get/put_cpu_var() pair in
the hotplug migration code, which results in:

BUG: using smp_processor_id() in preemptible [00000000] code: hib.sh/2845
...
[<ffffffff810d4fa3>] timer_cpu_notify+0x53/0x12

That hunk is a leftover from an earlier iteration and went unnoticed
so far.

Restore the previous code which was obviously correct.

Fixes: 0eeda71bc30d 'timer: Replace timer base by a cpu index'
Reported-and_tested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/timer.c