hwmon: (fam15h_power) Add ratio of Tsample to the PTSC period
authorHuang Rui <ray.huang@amd.com>
Thu, 27 Aug 2015 08:07:38 +0000 (16:07 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 27 Aug 2015 14:53:19 +0000 (07:53 -0700)
commit1ed32160dba643e61504b334f45b002198c88254
tree57fd52b4175d960c2c778c78015cd619d8d50fd6
parent5aeb5d205e122b70742df94a7d51a3502f1a8277
hwmon: (fam15h_power) Add ratio of Tsample to the PTSC period

This patch adds a member (cpu_pwr_sample_ratio) of fam15h_power_data,
that represents the ratio of compute unit power accumulator sample
period to the PTSC counter period.

Tsample: compute unit power accumulator sample period
Tref: the performance timestamp counter period
PTSC: performance timestamp counter

Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/fam15h_power.c