mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-18 15:46:09 +07:00
ACPI / processor: remove unused function parameter
The 'device' parameter is not used neither in acpi_processor_power_init and acpi_processor_power_exit. This patch removes it. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
This commit is contained in:
parent
c59687f846
commit
38a991b625
@ -475,7 +475,7 @@ static __ref int acpi_processor_start(struct acpi_processor *pr)
|
|||||||
acpi_processor_get_limit_info(pr);
|
acpi_processor_get_limit_info(pr);
|
||||||
|
|
||||||
if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver)
|
if (!cpuidle_get_driver() || cpuidle_get_driver() == &acpi_idle_driver)
|
||||||
acpi_processor_power_init(pr, device);
|
acpi_processor_power_init(pr);
|
||||||
|
|
||||||
pr->cdev = thermal_cooling_device_register("Processor", device,
|
pr->cdev = thermal_cooling_device_register("Processor", device,
|
||||||
&processor_cooling_ops);
|
&processor_cooling_ops);
|
||||||
@ -509,7 +509,7 @@ static __ref int acpi_processor_start(struct acpi_processor *pr)
|
|||||||
err_thermal_unregister:
|
err_thermal_unregister:
|
||||||
thermal_cooling_device_unregister(pr->cdev);
|
thermal_cooling_device_unregister(pr->cdev);
|
||||||
err_power_exit:
|
err_power_exit:
|
||||||
acpi_processor_power_exit(pr, device);
|
acpi_processor_power_exit(pr);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@ -620,7 +620,7 @@ static int acpi_processor_remove(struct acpi_device *device, int type)
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
acpi_processor_power_exit(pr, device);
|
acpi_processor_power_exit(pr);
|
||||||
|
|
||||||
sysfs_remove_link(&device->dev.kobj, "sysdev");
|
sysfs_remove_link(&device->dev.kobj, "sysdev");
|
||||||
|
|
||||||
|
@ -1216,8 +1216,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr)
|
|||||||
|
|
||||||
static int acpi_processor_registered;
|
static int acpi_processor_registered;
|
||||||
|
|
||||||
int __cpuinit acpi_processor_power_init(struct acpi_processor *pr,
|
int __cpuinit acpi_processor_power_init(struct acpi_processor *pr)
|
||||||
struct acpi_device *device)
|
|
||||||
{
|
{
|
||||||
acpi_status status = 0;
|
acpi_status status = 0;
|
||||||
int retval;
|
int retval;
|
||||||
@ -1281,8 +1280,7 @@ int __cpuinit acpi_processor_power_init(struct acpi_processor *pr,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int acpi_processor_power_exit(struct acpi_processor *pr,
|
int acpi_processor_power_exit(struct acpi_processor *pr)
|
||||||
struct acpi_device *device)
|
|
||||||
{
|
{
|
||||||
if (disabled_by_idle_boot_param())
|
if (disabled_by_idle_boot_param())
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -324,12 +324,10 @@ extern void acpi_processor_reevaluate_tstate(struct acpi_processor *pr,
|
|||||||
extern const struct file_operations acpi_processor_throttling_fops;
|
extern const struct file_operations acpi_processor_throttling_fops;
|
||||||
extern void acpi_processor_throttling_init(void);
|
extern void acpi_processor_throttling_init(void);
|
||||||
/* in processor_idle.c */
|
/* in processor_idle.c */
|
||||||
int acpi_processor_power_init(struct acpi_processor *pr,
|
int acpi_processor_power_init(struct acpi_processor *pr);
|
||||||
struct acpi_device *device);
|
int acpi_processor_power_exit(struct acpi_processor *pr);
|
||||||
int acpi_processor_cst_has_changed(struct acpi_processor *pr);
|
int acpi_processor_cst_has_changed(struct acpi_processor *pr);
|
||||||
int acpi_processor_hotplug(struct acpi_processor *pr);
|
int acpi_processor_hotplug(struct acpi_processor *pr);
|
||||||
int acpi_processor_power_exit(struct acpi_processor *pr,
|
|
||||||
struct acpi_device *device);
|
|
||||||
int acpi_processor_suspend(struct device *dev);
|
int acpi_processor_suspend(struct device *dev);
|
||||||
int acpi_processor_resume(struct device *dev);
|
int acpi_processor_resume(struct device *dev);
|
||||||
extern struct cpuidle_driver acpi_idle_driver;
|
extern struct cpuidle_driver acpi_idle_driver;
|
||||||
|
Loading…
Reference in New Issue
Block a user