]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98621d67ae804a8384ebd4cc702e25d689bf31d8
tree587b67fe9ad3ac465f698585e820ab677d749f64
parent5b22eddd8835bb8158c31d575c79d4bd87847146
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: 53d8ce933fb4 '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