[PATCH v7 1/4] cpufreq: Introduce an optional cpuinfo_avg_freq sysfs entry
Viresh Kumar
viresh.kumar at linaro.org
Thu Nov 7 22:28:37 PST 2024
On Mon, 4 Nov 2024 at 13:30, Beata Michalska <beata.michalska at arm.com> wrote:
> We need a way to discover whether the new sysfs attrib is to be enabled or not.
Ahh, this is too much trouble to make it optional then :)
> I guess I could change the signature for arch_freq_get_on_cpu to return an error
> if that functionality is not supported for given policy ?
That would be more controversial I guess as we may want an unsigned int return
type for frequency.
I think we can do two things here:
- Just enable the sysfs attribute all the time ?
- Make it optional based on some static cpufreq driver flag ?
I would just enable it for everyone I guess.
--
Viresh
More information about the linux-arm-kernel
mailing list