hwmon: (fam15h_power) Add compute unit accumulated power
authorHuang Rui <ray.huang@amd.com>
Wed, 6 Apr 2016 07:44:11 +0000 (15:44 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 19 Apr 2016 13:32:35 +0000 (06:32 -0700)
commitfa7943449943124e40cabcd453b08c3f8221c454
treeb20d8273413fc1dab05e147101feda94999c1214
parent3ba4e3841530b1565f761778bd0e14e242a4ab9a
hwmon: (fam15h_power) Add compute unit accumulated power

This patch adds a member in fam15h_power_data which specifies the
compute unit accumulated power. It adds do_read_registers_on_cu to do
all the read to all MSRs and run it on one of the online cores on each
compute unit with smp_call_function_many(). This behavior can decrease
IPI numbers.

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