]> 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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:02:37 +0000 (19:02 +0100)
commitead5af44a3789ff002b7f903491e91df268aaeff
tree4a592b37b9fb95b8d806c9629053f7a54aac7dfd
parentbf4939e265bc444151d92fb838b43ca705c4ffbe
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/cpufreq/cpufreq.c