Commit bca5f557 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

ACPI / processor: Make acpi_processor_ppc_has_changed() void

The return value of acpi_processor_ppc_has_changed() is never used,
so make it void.
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 182e36af
...@@ -157,7 +157,7 @@ static void acpi_processor_ppc_ost(acpi_handle handle, int status) ...@@ -157,7 +157,7 @@ static void acpi_processor_ppc_ost(acpi_handle handle, int status)
status, NULL); status, NULL);
} }
int acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag) void acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag)
{ {
int ret; int ret;
...@@ -168,7 +168,7 @@ int acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag) ...@@ -168,7 +168,7 @@ int acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag)
*/ */
if (event_flag) if (event_flag)
acpi_processor_ppc_ost(pr->handle, 1); acpi_processor_ppc_ost(pr->handle, 1);
return 0; return;
} }
ret = acpi_processor_get_platform_limit(pr); ret = acpi_processor_get_platform_limit(pr);
...@@ -182,10 +182,8 @@ int acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag) ...@@ -182,10 +182,8 @@ int acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag)
else else
acpi_processor_ppc_ost(pr->handle, 0); acpi_processor_ppc_ost(pr->handle, 0);
} }
if (ret < 0) if (ret >= 0)
return (ret); cpufreq_update_policy(pr->id);
else
return cpufreq_update_policy(pr->id);
} }
int acpi_processor_get_bios_limit(int cpu, unsigned int *limit) int acpi_processor_get_bios_limit(int cpu, unsigned int *limit)
......
...@@ -295,7 +295,7 @@ static inline void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx ...@@ -295,7 +295,7 @@ static inline void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx
#ifdef CONFIG_CPU_FREQ #ifdef CONFIG_CPU_FREQ
void acpi_processor_ppc_init(void); void acpi_processor_ppc_init(void);
void acpi_processor_ppc_exit(void); void acpi_processor_ppc_exit(void);
int acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag); void acpi_processor_ppc_has_changed(struct acpi_processor *pr, int event_flag);
extern int acpi_processor_get_bios_limit(int cpu, unsigned int *limit); extern int acpi_processor_get_bios_limit(int cpu, unsigned int *limit);
#else #else
static inline void acpi_processor_ppc_init(void) static inline void acpi_processor_ppc_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment