mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
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 <[email protected]> Signed-off-by: Dan Arai <[email protected]> Cc: Len Brown <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
4b47c971dc
commit
ba62b07787
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue