x86/mce/amd: Sanitize thresholding device creation hotplug path
authorThomas Gleixner <tglx@linutronix.de>
Mon, 30 Mar 2020 14:21:54 +0000 (16:21 +0200)
committerBorislav Petkov <bp@suse.de>
Tue, 14 Apr 2020 13:48:30 +0000 (15:48 +0200)
commit6e7a41c63abcfee28734c4c8872dae8d642329b6
tree5705c33c2bdea97cf6f4734eb9dd33469b3a27c7
parentcca9cc05fe98f3eb0cfb58ec6739cfc9d0b4ccbf
x86/mce/amd: Sanitize thresholding device creation hotplug path

Drop the stupid threshold_init_device() initcall iterating over all
online CPUs in favor of properly setting up everything on the CPU
hotplug path, when each CPU's callback is invoked.

 [ bp: Write commit message. ]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200403161943.1458-5-bp@alien8.de
arch/x86/kernel/cpu/mce/amd.c
arch/x86/kernel/cpu/mce/core.c