On 10.08.2022 21:29, Jason Andryuk wrote: > acpi-cpufreq scales the aperf/mperf measurements by max_freq, but HWP > needs to scale by base frequency. Settings max_freq to base_freq > "works" but the code is not obvious, and returning values to userspace > is tricky. Add an additonal perf_freq member which is used for scaling > aperf/mperf measurements. > > Signed-off-by: Jason Andryuk <jandr...@gmail.com> > --- > I don't like this, but it seems the best way to re-use the common > aperf/mperf code. The other option would be to add wrappers that then > do the acpi vs. hwp scaling.
I think that's okay-ish, so Acked-by: Jan Beulich <jbeul...@suse.com> Jan