ACPI / scan: bail out early if failed to parse APIC ID for CPU
authorJiang Liu <jiang.liu@linux.intel.com>
Thu, 9 Jan 2014 08:15:19 +0000 (16:15 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 11 Jan 2014 00:31:38 +0000 (01:31 +0100)
commitb981513f806d26b2cc971eb65ced14bede67558b
tree27120eeb63d0ce9c01574f5aefeb7bd804fc43a3
parentd6e0a2dd12f4067a5bcefb8bbd8ddbeff800afbc
ACPI / scan: bail out early if failed to parse APIC ID for CPU

Enhance ACPI CPU hotplug driver to print clear error message and
bail out early if BIOS returns wrong value in ACPI MADT table or
_MAT method. Otherwise it will add the CPU device even if failed
to get APIC ID and fails any operations against sysfs interface:
/sys/devices/system/cpu/cpux/online

Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_processor.c