Skip to contentSkip to conversation

x86_64: Remove entries in /sys/firmware/acpi for processor also

PATCH In review [email protected] 1 participant 1 message Mar 28, 2006 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 23/26 x86_64: Remove entries in /sys/firmware/acpi for processor also

From: Ashok Raj <[email protected]>

Processor entries under /sys/firmware/acpi/namespace/ACPI/_SB/CPU* were not being removed due to acpi_bus_trim not asking for it just for processors. Without which a new hot-add after a remove doesnt call appropriate init functions resulting in subsequent hot-add for same cpu failing.

Not clear why we restricted that to non-processor devices.

---

 drivers/acpi/scan.c |    5 +----
 1 files changed, 1 insertion(+), 4 deletions(-)
drivers/acpi/scan.c renamed from drivers/acpi/scan.c~remove-entries-in-sys-firmware-acpi-for-processor-also +1 -4
diff -puN drivers/acpi/scan.c~remove-entries-in-sys-firmware-acpi-for-processor-also drivers/acpi/scan.c
@@ -433,10 +433,7 @@ acpi_eject_store(struct acpi_device *dev
 	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);

_