diff options
author | Borislav Petkov <bp@suse.de> | 2020-10-15 12:28:58 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-11-16 17:42:12 +0100 |
commit | 8113ab20e850491b4144a1a64246f07a2d737a49 (patch) | |
tree | 84ff07078bbf6e1e3dda50f7f4b7fff8d8336cd1 /tools/power/cpupower/utils/cpupower-info.c | |
parent | MAINTAINERS: Cleanup SGI-related entries (diff) | |
download | linux-dev-8113ab20e850491b4144a1a64246f07a2d737a49.tar.xz linux-dev-8113ab20e850491b4144a1a64246f07a2d737a49.zip |
tools/power/cpupower: Read energy_perf_bias from sysfs
... 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@suse.de>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Cc: Thomas Renninger <trenn@suse.com>
Link: https://lkml.kernel.org/r/20201029190259.3476-2-bp@alien8.de
Diffstat (limited to 'tools/power/cpupower/utils/cpupower-info.c')
-rw-r--r-- | tools/power/cpupower/utils/cpupower-info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/cpupower/utils/cpupower-info.c b/tools/power/cpupower/utils/cpupower-info.c index 0ba61a2c4d81..06345b543786 100644 --- a/tools/power/cpupower/utils/cpupower-info.c +++ b/tools/power/cpupower/utils/cpupower-info.c @@ -101,7 +101,7 @@ int cmd_info(int argc, char **argv) } if (params.perf_bias) { - ret = msr_intel_get_perf_bias(cpu); + ret = cpupower_intel_get_perf_bias(cpu); if (ret < 0) { fprintf(stderr, _("Could not read perf-bias value[%d]\n"), ret); |