PM / devfreq: Add sysfs node to expose available frequencies
MyungJoo Ham
Acked-byQuoted 20 lines
devfreq governors such as ondemand are controlled by a min and max frequency, while governors like userspace governor allow us to set a specific frequency.
However, for the same specific device, depending on the SoC, the available frequencies can vary.So expose the available frequencies as a snapshot over sysfs to allow informed decisions.
This was inspired by cpufreq framework's equivalent for similar usage sysfs node:
scaling_available_frequencies.Cc Rajagopal Venkat <[email protected]>Cc MyungJoo Ham <[email protected]>Cc Kyungmin Park <[email protected]>Cc "Rafael J. Wysocki" <[email protected]>Cc Kevin Hilman <[email protected]>
Quoted 1 line
Signed-off-by Nishanth Menon <[email protected]>
Quoted 20 lines · MyungJoo Ham
Quoted 20 lines
devfreq governors such as ondemand are controlled by a min and max frequency, while governors like userspace governor allow us to set a specific frequency.
However, for the same specific device, depending on the SoC, the available frequencies can vary.So expose the available frequencies as a snapshot over sysfs to allow informed decisions.
This was inspired by cpufreq framework's equivalent for similar usage sysfs node:
scaling_available_frequencies.Cc Rajagopal Venkat <[email protected]>Cc MyungJoo Ham <[email protected]>Cc Kyungmin Park <[email protected]>Cc "Rafael J. Wysocki" <[email protected]>Cc Kevin Hilman <[email protected]>
Quoted 3 lines
Quoted 1 line
Signed-off-by Nishanth Menon <[email protected]>Acked-by MyungJoo Ham <[email protected]>
Are you going to handle this patch?
Rafael
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.