From: Alok Kataria Date: Wed, 9 Apr 2008 00:41:56 +0000 (-0700) Subject: acpi: fix "buggy BIOS check" when CPUs are hot removed X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba62b077871a5255e271f4fdae57167651839277;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git acpi: fix "buggy BIOS check" when CPUs are hot removed 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 --- diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index 36a68fa114e3..a825b431b64f 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -822,7 +822,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type) } processors[pr->id] = NULL; - + processor_device_array[pr->id] = NULL; kfree(pr); return 0;