From: Ashok Raj Date: Tue, 28 Mar 2006 22:04:00 +0000 (-0500) Subject: ACPI: Allow hot-add of ejected processor X-Git-Tag: v2.6.18-rc1~1081^2~19^2~20^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eefa27a93a0490902f33837ac86dbcf344b3aa29;p=karo-tx-linux.git 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 Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Len Brown --- diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index a0ab828b2cc5..95d5bc2acadd 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -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);