projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acacb5f
)
ACPI / memory-hotplug: call acpi_bus_trim() to remove memory device
author
Wen Congyang
<wency@cn.fujitsu.com>
Wed, 14 Nov 2012 23:22:27 +0000
(
00:22
+0100)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:22:27 +0000
(
00:22
+0100)
The memory device has been ejected and powoffed, so we can call
acpi_bus_trim() to remove the memory device from acpi bus.
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_memhotplug.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/acpi_memhotplug.c
b/drivers/acpi/acpi_memhotplug.c
index
24c807f
..
1e90e8f
100644
(file)
--- a/
drivers/acpi/acpi_memhotplug.c
+++ b/
drivers/acpi/acpi_memhotplug.c
@@
-401,8
+401,9
@@
static void acpi_memory_device_notify(acpi_handle handle, u32 event, void *data)
}
/*
- *
TBD: Invoke acpi_bus_remove to cleanup data structures
+ *
Invoke acpi_bus_trim() to remove memory device
*/
+ acpi_bus_trim(device, 1);
/* _EJ0 succeeded; _OST is not necessary */
return;