public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Fix "buggy BIOS check" when CPUs are hot removed
@ 2008-04-04 23:48 Alok Kataria
  2008-04-07 18:55 ` Alok Kataria
  2008-04-08  7:03 ` Andrew Morton
  0 siblings, 2 replies; 3+ messages in thread
From: Alok Kataria @ 2008-04-04 23:48 UTC (permalink / raw)
  To: len.brown, rui.zhang
  Cc: linux-acpi, linux-kernel, Daniel Arai, Zachary Amsden

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 <akataria@vmware.com>
Signed-off-by: Dan Arai <arai@vmware.com>

---
drivers/acpi/processor_core.c |    1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/acpi/processor_core.c
b/drivers/acpi/processor_core.c
index 61450f4..0f95f26 100644
--- a/drivers/acpi/processor_core.c
+++ b/drivers/acpi/processor_core.c
@@ -828,6 +828,7 @@ static int acpi_processor_remove(struct acpi_device
*device, int type)
}

processors[pr->id] = NULL;
+ processor_device_array[pr->id] = NULL;

kfree(pr);

-- 
1.5.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-08  7:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-04 23:48 Fix "buggy BIOS check" when CPUs are hot removed Alok Kataria
2008-04-07 18:55 ` Alok Kataria
2008-04-08  7:03 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox