mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ACPI: Allow hot-add of ejected processor
acpi_eject_store() didn't trim processors, causing subsequent hot-add to fail. Signed-off-by: Ashok Raj <ashok.raj@intel.com> Cc: Andi Kleen <ak@muc.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
683aa4012f
commit
eefa27a93a
1 changed files with 1 additions and 4 deletions
|
@ -441,10 +441,7 @@ acpi_eject_store(struct acpi_device *device, const char *buf, size_t count)
|
|||
islockable = device->flags.lockable;
|
||||
handle = device->handle;
|
||||
|
||||
if (type == ACPI_TYPE_PROCESSOR)
|
||||
result = acpi_bus_trim(device, 0);
|
||||
else
|
||||
result = acpi_bus_trim(device, 1);
|
||||
result = acpi_bus_trim(device, 1);
|
||||
|
||||
if (!result)
|
||||
result = acpi_eject_operation(handle, islockable);
|
||||
|
|
Loading…
Reference in a new issue