diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2020-12-10 06:47:40 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2020-12-15 13:37:59 +0100 |
commit | 51550a483606e35c379f78d28a7827f50e8fc09c (patch) | |
tree | b58bbcc1a95e59be3602823eacebb062f6475e02 /arch/arm64/kernel/topology.c | |
parent | Merge remote-tracking branch 'arm64/for-next/fixes' into for-next/core (diff) | |
download | linux-51550a483606e35c379f78d28a7827f50e8fc09c.tar.xz linux-51550a483606e35c379f78d28a7827f50e8fc09c.zip |
arm64: topology: Drop the useless update to per-cpu cycles
The previous call to update_freq_counters_refs() has already updated the
per-cpu variables, don't overwrite them with the same value again.
Fixes: 4b9cf23c179a ("arm64: wrap and generalise counter read functions")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Ionela Voinescu <ionela.voinescu@arm.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/7a171f710cdc0f808a2bfbd7db839c0d265527e7.1607579234.git.viresh.kumar@linaro.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/topology.c')
-rw-r--r-- | arch/arm64/kernel/topology.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c index b8026ec684ba..aebeb6f3d2f4 100644 --- a/arch/arm64/kernel/topology.c +++ b/arch/arm64/kernel/topology.c @@ -304,7 +304,7 @@ void topology_scale_freq_tick(void) if (unlikely(core_cnt <= prev_core_cnt || const_cnt <= prev_const_cnt)) - goto store_and_exit; + return; /* * /\core arch_max_freq_scale @@ -321,10 +321,6 @@ void topology_scale_freq_tick(void) scale = min_t(unsigned long, scale, SCHED_CAPACITY_SCALE); this_cpu_write(freq_scale, (unsigned long)scale); - -store_and_exit: - this_cpu_write(arch_core_cycles_prev, core_cnt); - this_cpu_write(arch_const_cycles_prev, const_cnt); } #ifdef CONFIG_ACPI_CPPC_LIB |