]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cpufreq: expose scaling_cur_freq sysfs file for set_policy() drivers
authorDirk Brandewie <dirk.j.brandewie@intel.com>
Mon, 13 Oct 2014 15:37:40 +0000 (08:37 -0700)
committerZefan Li <lizefan@huawei.com>
Mon, 2 Feb 2015 09:04:56 +0000 (17:04 +0800)
commitaea44610e138333df482345cbc81a8959be0da94
tree39d6760fb243044860f0378b89ae1cbd66aadadb
parente930516632e7bde53d1abc5154e9245c4b0bdb09
cpufreq: expose scaling_cur_freq sysfs file for set_policy() drivers

commit c034b02e213d271b98c45c4a7b54af8f69aaac1e upstream.

Currently the core does not expose scaling_cur_freq for set_policy()
drivers this breaks some userspace monitoring tools.
Change the core to expose this file for all drivers and if the
set_policy() driver supports the get() callback use it to retrieve the
current frequency.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=73741
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/cpufreq/cpufreq.c