Skip to contentSkip to conversation

PM / devfreq: Add sysfs node to expose available frequencies

PATCH MyungJoo Ham 2 participants 2 messages Oct 26, 2012 – Oct 31, 2012

lore
Share & tools
lore

MyungJoo Ham

author Acked-by
#0 lore raw
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 1 line
#1 lore raw
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

Are you going to handle this patch?

Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.