diff options
author | Zhang Rui <rui.zhang@intel.com> | 2021-03-11 05:05:13 +0300 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2021-05-05 01:23:14 +0300 |
commit | abdc75ab53b7fd2ef42c79e88cf0caf2d007c4f2 (patch) | |
tree | 7db7d93d631a23d594b1c5856e5feb5388f7cd49 /tools/power/x86/turbostat/turbostat.c | |
parent | b2b94be787bf47eedd5890a249f3318bf9f1f1d5 (diff) | |
download | linux-abdc75ab53b7fd2ef42c79e88cf0caf2d007c4f2.tar.xz |
tools/power turbostat: Fix DRAM Energy Unit on SKX
SKX uses fixed DRAM Energy Unit, just like HSX and BDX.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/power/x86/turbostat/turbostat.c')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 98a0a731da8a..5afe85efca5c 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c @@ -4272,6 +4272,7 @@ rapl_dram_energy_units_probe(int model, double rapl_energy_units) switch (model) { case INTEL_FAM6_HASWELL_X: /* HSX */ case INTEL_FAM6_BROADWELL_X: /* BDX */ + case INTEL_FAM6_SKYLAKE_X: /* SKX */ case INTEL_FAM6_XEON_PHI_KNL: /* KNL */ return (rapl_dram_energy_units = 15.3 / 1000000); default: |