]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit099a66af5b2772bb6d5c2f4202823b1c29d527e6
treeb20d8273413fc1dab05e147101feda94999c1214
parent9c560c7bb30d5a6ccf3d0f7dcfbf27202efe70e1
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