ACPI: scan: Make acpi_processor_add() check the device enabled bit
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 Feb 2024 16:40:52 +0000 (17:40 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 27 Feb 2024 16:54:59 +0000 (17:54 +0100)
commit1b4f02a34f095b96de36fa16755f5598ba380939
tree72733ca7c3c494c0a93f3b905c03174ed4665466
parent514bcabc05387369ee491b8359f34fcd45f25f55
ACPI: scan: Make acpi_processor_add() check the device enabled bit

Modify acpi_processor_add() return an error if _STA returns the enabled
bit clear for the given processor device, so as to avoid using processors
that don't decode their resources, as per the ACPI specification. [1]

Link: https://uefi.org/specs/ACPI/6.5/06_Device_Configuration.html#sta-device-status
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/acpi/acpi_processor.c
drivers/acpi/internal.h
drivers/acpi/scan.c