提交 eefa27a9 编写于 作者: A Ashok Raj 提交者: Len Brown

ACPI: Allow hot-add of ejected processor

acpi_eject_store() didn't trim processors, causing subsequent
hot-add to fail.
Signed-off-by: NAshok Raj <ashok.raj@intel.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 683aa401
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册