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)
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

Simple merge