linux/tools/power/x86/turbostat
Borislav Petkov 7f1b11ba35 tools/power/turbostat: Fallback to an MSR read for EPB
Commit

  6d6501d912 ("tools/power/turbostat: Read energy_perf_bias from sysfs")

converted turbostat to read the energy_perf_bias value from sysfs.
However, older kernels which do not have that file yet, would fail. For
those, fall back to the MSR reading.

Fixes: 6d6501d912 ("tools/power/turbostat: Read energy_perf_bias from sysfs")
Reported-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Tested-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Link: https://lkml.kernel.org/r/20210127132444.981120-1-dedekind1@gmail.com
2021-02-03 11:58:19 +01:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile tools/power turbostat: Build with _FILE_OFFSET_BITS=64 2020-09-03 13:59:10 -04:00
turbostat.8 tools/power turbostat: Replace HTTP links with HTTPS ones: TURBOSTAT UTILITY 2020-09-03 13:58:37 -04:00
turbostat.c tools/power/turbostat: Fallback to an MSR read for EPB 2021-02-03 11:58:19 +01:00