Commit 83744b77 authored by Ionela Voinescu's avatar Ionela Voinescu
Browse files

x86, ACPI: rename init_freq_invariance_cppc to arch_init_invariance_cppc



init_freq_invariance_cppc() was called in acpi_cppc_processor_probe(),
after CPU performance information and controls were populated from the
per-cpu _CPC objects.

But these _CPC objects provide information that helps with both CPU
(u-arch) and frequency invariance. Therefore, change the function name
to a more generic one, while adding the arch_ prefix, as this function
is expected to be defined differently by different architectures.
Signed-off-by: Ionela Voinescu's avatarIonela Voinescu <ionela.voinescu@arm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Giovanni Gherdovich <ggherdovich@suse.cz>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
parent 282844c7
...@@ -220,7 +220,7 @@ static inline void arch_set_max_freq_ratio(bool turbo_disabled) ...@@ -220,7 +220,7 @@ static inline void arch_set_max_freq_ratio(bool turbo_disabled)
#ifdef CONFIG_ACPI_CPPC_LIB #ifdef CONFIG_ACPI_CPPC_LIB
void init_freq_invariance_cppc(void); void init_freq_invariance_cppc(void);
#define init_freq_invariance_cppc init_freq_invariance_cppc #define arch_init_invariance_cppc init_freq_invariance_cppc
#endif #endif
#endif /* _ASM_X86_TOPOLOGY_H */ #endif /* _ASM_X86_TOPOLOGY_H */
...@@ -660,8 +660,8 @@ static bool is_cppc_supported(int revision, int num_ent) ...@@ -660,8 +660,8 @@ static bool is_cppc_supported(int revision, int num_ent)
* } * }
*/ */
#ifndef init_freq_invariance_cppc #ifndef arch_init_invariance_cppc
static inline void init_freq_invariance_cppc(void) { } static inline void arch_init_invariance_cppc(void) { }
#endif #endif
/** /**
...@@ -826,7 +826,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr) ...@@ -826,7 +826,7 @@ int acpi_cppc_processor_probe(struct acpi_processor *pr)
goto out_free; goto out_free;
} }
init_freq_invariance_cppc(); arch_init_invariance_cppc();
kfree(output.pointer); kfree(output.pointer);
return 0; return 0;
......
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