[SRU,D/OEM-OSP1-B,1/1] tools/power turbostat: Add Cometlake support
diff mbox series

Message ID 20191120111659.1005237-2-vicamo.yang@canonical.com
State New
Headers show
Series
  • tools/power turbostat: Add Cometlake support
Related show

Commit Message

You-Sheng Yang Nov. 20, 2019, 11:16 a.m. UTC
From: Chen Yu <yu.c.chen@intel.com>

BugLink: https://bugs.launchpad.net/bugs/1847451

From a turbostat point of view, Cometlake is like Kabylake.

Suggested-by: Rui Zhang <rui.zhang@intel.com>
Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
(backported from commit 68973b44c86040ccd145d0dfe2143c839ff6ee45
https://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux.git)
Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
---
 tools/power/x86/turbostat/turbostat.c | 2 ++
 1 file changed, 2 insertions(+)

Patch
diff mbox series

diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index c9817bdb40eb..d9ac9566a63d 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -4452,6 +4452,8 @@  unsigned int intel_model_duplicates(unsigned int model)
 	case INTEL_FAM6_SKYLAKE_DESKTOP:
 	case INTEL_FAM6_KABYLAKE_MOBILE:
 	case INTEL_FAM6_KABYLAKE_DESKTOP:
+	case INTEL_FAM6_COMETLAKE_L:
+	case INTEL_FAM6_COMETLAKE:
 		return INTEL_FAM6_SKYLAKE_MOBILE;
 	}
 	return model;