x86/ACPI: Don't add CPUs that are not online capable
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 8 Sep 2021 21:41:46 +0000 (16:41 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Sep 2021 17:19:02 +0000 (19:19 +0200)
commitaa06e20f1be628186f0c2dcec09ea0009eb69778
treee9e9e350d654320829cf9281bf9445347f0c190f
parent435a8dc8d9b9d91e625901fea5b5695b9b976d84
x86/ACPI: Don't add CPUs that are not online capable

A number of systems are showing "hotplug capable" CPUs when they
are not really hotpluggable.  This is because the MADT has extra
CPU entries to support different CPUs that may be inserted into
the socket with different numbers of cores.

Starting with ACPI 6.3 the spec has an Online Capable bit in the
MADT used to determine whether or not a CPU is hotplug capable
when the enabled bit is not set.

Link: https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/05_ACPI_Software_Programming_Model/ACPI_Software_Programming_Model.html?#local-apic-flags
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/x86/kernel/acpi/boot.c