Skip to content

Commit

Permalink
Pull 5452 into release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Len Brown committed Dec 1, 2005
2 parents b7639da + cd8e2b4 commit 16071a0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions drivers/acpi/processor_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,8 @@ static int acpi_processor_get_info(struct acpi_processor *pr)
return_VALUE(0);
}

static void *processor_device_array[NR_CPUS];

static int acpi_processor_start(struct acpi_device *device)
{
int result = 0;
Expand All @@ -561,6 +563,19 @@ static int acpi_processor_start(struct acpi_device *device)

BUG_ON((pr->id >= NR_CPUS) || (pr->id < 0));

/*
* Buggy BIOS check
* ACPI id of processors can be reported wrongly by the BIOS.
* Don't trust it blindly
*/
if (processor_device_array[pr->id] != NULL &&
processor_device_array[pr->id] != (void *)device) {
ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "BIOS reporting wrong ACPI id"
"for the processor\n"));
return_VALUE(-ENODEV);
}
processor_device_array[pr->id] = (void *)device;

processors[pr->id] = pr;

result = acpi_processor_add_fs(device);
Expand Down

0 comments on commit 16071a0

Please sign in to comment.