Skip to contentSkip to conversation

PM / devfreq: Add sysfs node to expose available frequencies

PATCH MyungJoo Ham 2 participants 2 messages Oct 31, 2012

lore
Share & tools
lore
#0 lore raw
Quoted 21 lines · MyungJoo Ham
Quoted 20 lines
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 5 lines
Quoted 3 lines
Quoted 1 line

Are you going to handle this patch?

Yes, I've just setup the git repository this week
and I'm willing to handle this one.

It is applied at
http://git.kernel.org/?p=linux/kernel/git/mzx/devfreq.git;a=shortlog;h=refs/heads/for-rafael

Thanks,

MyungJoo

Quoted 14 lines

Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#1 lore raw
Quoted 25 lines · MyungJoo Ham
Quoted 25 lines · MyungJoo Ham
Quoted 23 lines
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
Quoted 7 lines
Quoted 1 line

Are you going to handle this patch?

Yes, I've just setup the git repository this week
and I'm willing to handle this one.

It is applied at
http://git.kernel.org/?p=linux/kernel/git/mzx/devfreq.git;a=shortlog;h=refs/heads/for-rafael

OK

Please let me know when you want me to pull from your tree.

Please also note that the release of v3.7-rc6 is the deadline for non-bugfix changes targeted at v3.8. :-)

Thanks,
Rafael

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