summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2021-03-11 03:05:13 +0100
committerLen Brown <len.brown@intel.com>2021-05-05 00:23:14 +0200
commitabdc75ab53b7fd2ef42c79e88cf0caf2d007c4f2 (patch)
tree7db7d93d631a23d594b1c5856e5feb5388f7cd49 /tools
parentRevert "tools/power turbostat: adjust for temperature offset" (diff)
downloadlinux-abdc75ab53b7fd2ef42c79e88cf0caf2d007c4f2.tar.xz
linux-abdc75ab53b7fd2ef42c79e88cf0caf2d007c4f2.zip
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')
-rw-r--r--tools/power/x86/turbostat/turbostat.c1
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: