On Tue, Feb 18, 2025 at 01:00:20AM +0100, Beata Michalska wrote: > On Mon, Feb 17, 2025 at 09:32:06PM +0000, Catalin Marinas wrote: > > On Fri, 31 Jan 2025 16:24:35 +0000, Beata Michalska wrote: > > > This series adds support for obtaining an average CPU frequency based on > > > a hardware provided feedback. The average frequency is being exposed via > > > dedicated yet optional cpufreq sysfs attribute - cpuinfo_avg_freq. > > > The architecture specific bits are being provided for AArch64, caching on > > > existing implementation for FIE and AMUv1 support: the frequency scale > > > factor, updated on each sched tick, serving as a base for retrieving > > > the frequency for a given CPU, representing an average frequency > > > reported between the ticks. > > > > > > [...] > > > Thank you for that. > > There is still a (not so) small issue with patch > [3/4] arm64: Provide an AMU-based version of arch_freq_get_on_cpu. > It did not come up while testing, sadly. > No idea how I could have missed that, nor why I made the mistake > in the first place. > > The fix is pretty straightforward: > > diff --git a/arch/arm64/kernel/topology.c b/arch/arm64/kernel/topology.c > index 6f0cab8e746b..4bac26d8e29c 100644 > --- a/arch/arm64/kernel/topology.c > +++ b/arch/arm64/kernel/topology.c > @@ -268,7 +268,7 @@ int arch_freq_get_on_cpu(int cpu) > > do { > ref_cpu = cpumask_next_wrap(ref_cpu, policy->cpus, > - start_cpu, false); > + start_cpu, true); > > Please let me know if you want me to send new version with the fix applied. Usually we apply another patch on top with a Fixes tag or just fold it in if no-one relies on this branch being stable. I'll do the latter, no need to resend. Thanks. -- Catalin