]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86/apic: Use dead_cpu instead of current CPU when cleaning up
authorBorislav Petkov <bp@suse.de>
Tue, 26 Sep 2017 17:08:45 +0000 (19:08 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 27 Sep 2017 07:37:41 +0000 (09:37 +0200)
commit1e66e2b86293ff1ded32104ac0ad26a7f08ec439
treeef84d1ad9214e01f18a6dd08831ad1613c370dac
parent9c71206d060d4e84896f3bd680319b29fe88b8e8
x86/apic: Use dead_cpu instead of current CPU when cleaning up

x2apic_dead_cpu() cleans up the leftovers of a CPU which got unplugged, but
instead of clearing the dead cpu bit in the cluster mask it clears the
current (alive) cpu bit. Noticed because smp_processor_id() is called in
preemptible code and triggers a debug warning.

[ tglx: Rewrote changelog ]

Fixes: 023a611748fd ("x86/apic/x2apic: Simplify cluster management")
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20170926170845.13955-1-bp@alien8.de
arch/x86/kernel/apic/x2apic_cluster.c