[PATCH v6] arm64: topology: fix arch_freq_get_on_cpu() overflow above 4.19 GHz

Will Deacon will at kernel.org
Thu Sep 24 03:31:05 PDT 2026


On Wed, 23 Sep 2026 14:56:04 +0200, Oleg Keri wrote:
> arch_freq_get_on_cpu() computes the product of the frequency scale and
> the reference frequency as a u64, but assigns it to an unsigned int
> before shifting it back down:
> 
> 	freq = scale * arch_scale_freq_ref(cpu);
> 	freq >>= SCHED_CAPACITY_SHIFT;
> 
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: topology: fix arch_freq_get_on_cpu() overflow above 4.19 GHz
      https://git.kernel.org/arm64/c/3872cc6b9294

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list