]> Git Repo - linux.git/commitdiff
ACPI: Allow hot-add of ejected processor
authorAshok Raj <[email protected]>
Tue, 28 Mar 2006 22:04:00 +0000 (17:04 -0500)
committerLen Brown <[email protected]>
Sun, 2 Apr 2006 03:45:30 +0000 (22:45 -0500)
acpi_eject_store() didn't trim processors, causing subsequent
hot-add to fail.

Signed-off-by: Ashok Raj <[email protected]>
Cc: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Len Brown <[email protected]>
drivers/acpi/scan.c

index a0ab828b2cc5fc589335fe9ffe1c1462985288eb..95d5bc2acadd3179c73ce8a6e04c84145697ad83 100644 (file)
@@ -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);
This page took 0.058399 seconds and 4 git commands to generate.