diff options
author | Huang Rui <ray.huang@amd.com> | 2016-04-06 15:44:13 +0800 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2016-04-19 06:32:35 -0700 |
commit | 11bf0d78ccc4b2944aafd22ff05cd7e413ffea57 (patch) | |
tree | 4744ef42e05b20233476b9efe489706d61f7ea12 /MAINTAINERS | |
parent | cdb9e110b10a08b7e1371356c2c03c73eb4f93d5 (diff) | |
download | op-kernel-dev-11bf0d78ccc4b2944aafd22ff05cd7e413ffea57.zip op-kernel-dev-11bf0d78ccc4b2944aafd22ff05cd7e413ffea57.tar.gz |
hwmon: (fam15h_power) Introduce a cpu accumulated power reporting algorithm
This patch introduces an algorithm that computes the average power by
reading a delta value of “core power accumulator” register during
measurement interval, and then dividing delta value by the length of
the time interval.
User is able to use power1_average entry to measure the processor power
consumption and power1_average_interval entry to set the interval.
A simple example:
ray@hr-ub:~/tip$ sensors
fam15h_power-pci-00c4
Adapter: PCI adapter
power1: 19.58 mW (avg = 2.55 mW, interval = 0.01 s)
(crit = 15.00 W)
...
The result is current average processor power consumption in 10
millisecond. The unit of the result is uWatt.
Suggested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Cc: Borislav Petkov <bp@alien8.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions