x86, microcode, AMD: Do not use smp_processor_id() in preemtible context
authorBorislav Petkov <bp@suse.de>
Mon, 1 Dec 2014 10:12:21 +0000 (11:12 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 1 Dec 2014 10:51:05 +0000 (11:51 +0100)
Hand down the cpu number instead, otherwise lockdep screams when doing

echo 1 > /sys/devices/system/cpu/microcode/reload.

BUG: using smp_processor_id() in preemptible [00000000] code: amd64-microcode/2470
caller is debug_smp_processor_id+0x12/0x20
CPU: 1 PID: 2470 Comm: amd64-microcode Not tainted 3.18.0-rc6+ #26
...

Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1417428741-4501-1-git-send-email-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

No differences found