]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
cpufreq: powernv: Add sysfs attributes to show throttle stats
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Tue, 22 Mar 2016 13:27:09 +0000 (18:57 +0530)
committerTim Gardner <tim.gardner@canonical.com>
Thu, 7 Apr 2016 15:42:59 +0000 (16:42 +0100)
commit85b9da23cc6b147804eb4c4c601d388783f8692d
tree1f386273ffc5a28e61b8d768db25b06403b7bfd6
parentcc2ff689ac429430b420e891303bcea8f9917fd0
cpufreq: powernv: Add sysfs attributes to show throttle stats

BugLink: http://bugs.launchpad.net/bugs/1555765
Create sysfs attributes to export throttle information in
/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats directory. The
newly added sysfs files are as follows:

 1)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/turbo_stat
 2)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/sub-turbo_stat
 3)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/unthrottle
 4)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/powercap
 5)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/overtemp
 6)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/supply_fault
 7)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/overcurrent
 8)/sys/devices/system/cpu/cpuX/cpufreq/throttle_stats/occ_reset

Detailed explanation of each attribute is added to
Documentation/ABI/testing/sysfs-devices-system-cpu

Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 1b0289848d5dcea74a6e5115d6c9892b0dbe9c8f)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Documentation/ABI/testing/sysfs-devices-system-cpu
drivers/cpufreq/powernv-cpufreq.c