aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/topology.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2021-03-10 08:16:40 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2021-03-10 10:55:37 +0530
commiteec73529a9321616ed13cf732cd21a17eb1a2836 (patch)
treee9eb1eb8f07f2b8f4fc8c6e97a9e4470e60459e8 /arch/arm64/kernel/topology.c
parentcpufreq: blacklist Arm Vexpress platforms in cpufreq-dt-platdev (diff)
downloadlinux-dev-eec73529a9321616ed13cf732cd21a17eb1a2836.tar.xz
linux-dev-eec73529a9321616ed13cf732cd21a17eb1a2836.zip
arch_topology: Rename freq_scale as arch_freq_scale
Rename freq_scale to a less generic name, as it will get exported soon for modules. Since x86 already names its own implementation of this as arch_freq_scale, lets stick to that. Suggested-by: Will Deacon <will@kernel.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'arch/arm64/kernel/topology.c')
-rw-r--r--arch/arm64/kernel/topology.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c
index e08a4126453a..aa8d893619ed 100644
--- a/arch/arm64/kernel/topology.c
+++ b/arch/arm64/kernel/topology.c
@@ -256,8 +256,8 @@ static int init_amu_fie_callback(struct notifier_block *nb, unsigned long val,
* initialized AMU support and enabled invariance. The AMU counters will
* keep on working just fine in the absence of the cpufreq driver, and
* for the CPUs for which there are no counters available, the last set
- * value of freq_scale will remain valid as that is the frequency those
- * CPUs are running at.
+ * value of arch_freq_scale will remain valid as that is the frequency
+ * those CPUs are running at.
*/
return 0;
@@ -327,7 +327,7 @@ void topology_scale_freq_tick(void)
const_cnt - prev_const_cnt);
scale = min_t(unsigned long, scale, SCHED_CAPACITY_SCALE);
- this_cpu_write(freq_scale, (unsigned long)scale);
+ this_cpu_write(arch_freq_scale, (unsigned long)scale);
}
#ifdef CONFIG_ACPI_CPPC_LIB