Skip to content

Commit ce360db

Browse files
spandruvadarafaeljw
authored andcommitted
ACPI / processor: Fix thermal cooling device regression
The processor cooling device is no longer present for passive thermal control. Commit 239708a ("ACPI: Split out ACPI PSS from ACPI Processor driver") moved the processing to a new function acpi_pss_perf_init(), but missed "return 0" after successful creation. This causes the error handling functions to be called, which will delete the previously created processor cooling device. Fixes: 239708a (ACPI: Split out ACPI PSS from ACPI Processor driver) Signed-off-by: Srinivas Pandruvada <[email protected]> Cc: 4.3+ <[email protected]> # 4.3+ Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 4ef7675 commit ce360db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/acpi/processor_driver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ static int acpi_pss_perf_init(struct acpi_processor *pr,
200200
goto err_remove_sysfs_thermal;
201201
}
202202

203-
sysfs_remove_link(&pr->cdev->device.kobj, "device");
203+
return 0;
204+
204205
err_remove_sysfs_thermal:
205206
sysfs_remove_link(&device->dev.kobj, "thermal_cooling");
206207
err_thermal_unregister:

0 commit comments

Comments
 (0)