From: Alok Kataria Date: Thu, 10 Apr 2008 01:50:05 +0000 (+0000) Subject: acpi: fix "buggy BIOS check" when CPUs are hot removed X-Git-Tag: v2.6.24.5~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53def1fec24f8216778a0492e62370141c5c15a4;p=thirdparty%2Fkernel%2Fstable.git acpi: fix "buggy BIOS check" when CPUs are hot removed upstream commit: ba62b077871a5255e271f4fdae57167651839277 Fixes a BUG in ACPI hotplugging. processor_device_array[pr->id] needs to be set to NULL when removing a CPU. Else the "buggy BIOS check" in acpi_processor_start mistakenly fires when a CPU is removed from the system and then later re-added. Signed-off-by: Alok N Kataria Signed-off-by: Dan Arai Cc: Len Brown Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Chris Wright --- diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index e48ee4f8749f4..021153f534bf1 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -792,7 +792,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type) acpi_processor_remove_fs(device); processors[pr->id] = NULL; - + processor_device_array[pr->id] = NULL; kfree(pr); return 0;