diff options
-rw-r--r-- | drivers/acpi/processor_driver.c | 6 | ||||
-rw-r--r-- | drivers/acpi/processor_idle.c | 6 | ||||
-rw-r--r-- | include/acpi/processor.h | 6 |
3 files changed, 7 insertions, 11 deletions
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c index bfc31cb0dd3e..9c9288b7e410 100644 --- a/drivers/acpi/processor_driver.c +++ b/drivers/acpi/processor_driver.c | |||
@@ -475,7 +475,7 @@ static __ref int acpi_processor_start(struct acpi_processor *pr) | |||
475 | acpi_processor_get_limit_info(pr); | 475 | acpi_processor_get_limit_info(pr); |
476 | 476 | ||
477 | if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver) | 477 | if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver) |
478 | acpi_processor_power_init(pr, device); | 478 | acpi_processor_power_init(pr); |
479 | 479 | ||
480 | pr->cdev = thermal_cooling_device_register("Processor", device, | 480 | pr->cdev = thermal_cooling_device_register("Processor", device, |
481 | &processor_cooling_ops); | 481 | &processor_cooling_ops); |
@@ -509,7 +509,7 @@ err_remove_sysfs_thermal: | |||
509 | err_thermal_unregister: | 509 | err_thermal_unregister: |
510 | thermal_cooling_device_unregister(pr->cdev); | 510 | thermal_cooling_device_unregister(pr->cdev); |
511 | err_power_exit: | 511 | err_power_exit: |
512 | acpi_processor_power_exit(pr, device); | 512 | acpi_processor_power_exit(pr); |
513 | 513 | ||
514 | return result; | 514 | return result; |
515 | } | 515 | } |
@@ -620,7 +620,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type) | |||
620 | return -EINVAL; | 620 | return -EINVAL; |
621 | } | 621 | } |
622 | 622 | ||
623 | acpi_processor_power_exit(pr, device); | 623 | acpi_processor_power_exit(pr); |
624 | 624 | ||
625 | sysfs_remove_link(&device->dev.kobj, "sysdev"); | 625 | sysfs_remove_link(&device->dev.kobj, "sysdev"); |
626 | 626 | ||
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index de896242d144..c46a44a8c860 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -1216,8 +1216,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr) | |||
1216 | 1216 | ||
1217 | static int acpi_processor_registered; | 1217 | static int acpi_processor_registered; |
1218 | 1218 | ||
1219 | int __cpuinit acpi_processor_power_init(struct acpi_processor *pr, | 1219 | int __cpuinit acpi_processor_power_init(struct acpi_processor *pr) |
1220 | struct acpi_device *device) | ||
1221 | { | 1220 | { |
1222 | acpi_status status = 0; | 1221 | acpi_status status = 0; |
1223 | int retval; | 1222 | int retval; |
@@ -1281,8 +1280,7 @@ int __cpuinit acpi_processor_power_init(struct acpi_processor *pr, | |||
1281 | return 0; | 1280 | return 0; |
1282 | } | 1281 | } |
1283 | 1282 | ||
1284 | int acpi_processor_power_exit(struct acpi_processor *pr, | 1283 | int acpi_processor_power_exit(struct acpi_processor *pr) |
1285 | struct acpi_device *device) | ||
1286 | { | 1284 | { |
1287 | if (disabled_by_idle_boot_param()) | 1285 | if (disabled_by_idle_boot_param()) |
1288 | return 0; | 1286 | return 0; |
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index db427fa8cf82..1d3c1a68acce 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h | |||
@@ -324,12 +324,10 @@ extern void acpi_processor_reevaluate_tstate(struct acpi_processor *pr, | |||
324 | extern const struct file_operations acpi_processor_throttling_fops; | 324 | extern const struct file_operations acpi_processor_throttling_fops; |
325 | extern void acpi_processor_throttling_init(void); | 325 | extern void acpi_processor_throttling_init(void); |
326 | /* in processor_idle.c */ | 326 | /* in processor_idle.c */ |
327 | int acpi_processor_power_init(struct acpi_processor *pr, | 327 | int acpi_processor_power_init(struct acpi_processor *pr); |
328 | struct acpi_device *device); | 328 | int acpi_processor_power_exit(struct acpi_processor *pr); |
329 | int acpi_processor_cst_has_changed(struct acpi_processor *pr); | 329 | int acpi_processor_cst_has_changed(struct acpi_processor *pr); |
330 | int acpi_processor_hotplug(struct acpi_processor *pr); | 330 | int acpi_processor_hotplug(struct acpi_processor *pr); |
331 | int acpi_processor_power_exit(struct acpi_processor *pr, | ||
332 | struct acpi_device *device); | ||
333 | int acpi_processor_suspend(struct device *dev); | 331 | int acpi_processor_suspend(struct device *dev); |
334 | int acpi_processor_resume(struct device *dev); | 332 | int acpi_processor_resume(struct device *dev); |
335 | extern struct cpuidle_driver acpi_idle_driver; | 333 | extern struct cpuidle_driver acpi_idle_driver; |