Skip to content

Commit

Permalink
ACPI: Allow hot-add of ejected processor
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ashok Raj authored and Len Brown committed Apr 2, 2006
1 parent 683aa40 commit eefa27a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eefa27a

Please sign in to comment.