Re: [PATCH v1 1/4] tools/power/cpupower: Read energy_perf_bias from sysfs

From: Shuah Khan
Date: Fri Oct 30 2020 - 13:13:52 EST


On 10/29/20 1:02 PM, Borislav Petkov wrote:
From: Borislav Petkov <bp@xxxxxxx>

... instead of poking at the MSR. For that, move the accessor functions
to misc.c and add a sysfs-writing function too.

There should be no functional changes resulting from this.

Signed-off-by: Borislav Petkov <bp@xxxxxxx>
Cc: Thomas Renninger <trenn@xxxxxxxx>
Cc: Shuah Khan <shuah@xxxxxxxxxx>
---
tools/power/cpupower/lib/cpupower.c | 23 +++++++++-
tools/power/cpupower/lib/cpupower_intern.h | 5 ++
tools/power/cpupower/utils/cpupower-info.c | 2 +-
tools/power/cpupower/utils/cpupower-set.c | 2 +-
tools/power/cpupower/utils/helpers/helpers.h | 8 ++--
tools/power/cpupower/utils/helpers/misc.c | 48 ++++++++++++++++++++
tools/power/cpupower/utils/helpers/msr.c | 28 ------------
7 files changed, 81 insertions(+), 35 deletions(-)


Thanks. Looks good to me.

Reviewed-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>

thanks,
-- Shuah