smp/hotplug: Track booted once CPUs in a cpumask
authorThomas Gleixner <tglx@linutronix.de>
Mon, 22 Jul 2019 18:47:16 +0000 (20:47 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 25 Jul 2019 13:47:37 +0000 (15:47 +0200)
commite797bda3fd29137f6c151dfa10ea6a61c17895ce
treecb0bbe066270a64ff96721d63c4b2c5c31cd2591
parentad5e427e0f6b702e52c11d1f7b2b7be3bac7de82
smp/hotplug: Track booted once CPUs in a cpumask

The booted once information which is required to deal with the MCE
broadcast issue on X86 correctly is stored in the per cpu hotplug state,
which is perfectly fine for the intended purpose.

X86 needs that information for supporting NMI broadcasting via shortcuts,
but retrieving it from per cpu data is cumbersome.

Move it to a cpumask so the information can be checked against the
cpu_present_mask quickly.

No functional change intended.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20190722105219.818822855@linutronix.de
include/linux/cpumask.h
kernel/cpu.c