summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2017-02-10 01:56:47 -0500
committerLen Brown <len.brown@intel.com>2017-03-01 00:14:21 -0500
commitade0ebacdf03591b3dab642e6e92da60c20ebdb3 (patch)
tree4a587137e6dfe3b96d0f74b8dbda45158fd4f7a8 /tools
parent31e07522be566cd039ff7a770550076cc1707a0c (diff)
tools/power turbostat: skip unused counters on BDX
Skip these two counters on BDX, as they are always zero: cc7, pc7 Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/power/x86/turbostat/turbostat.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 67a275882a8d..334c4c29d4b5 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -2612,6 +2612,19 @@ int is_dnv(unsigned int family, unsigned int model)
2612 } 2612 }
2613 return 0; 2613 return 0;
2614} 2614}
2615int is_bdx(unsigned int family, unsigned int model)
2616{
2617
2618 if (!genuine_intel)
2619 return 0;
2620
2621 switch (model) {
2622 case INTEL_FAM6_BROADWELL_X:
2623 case INTEL_FAM6_BROADWELL_XEON_D:
2624 return 1;
2625 }
2626 return 0;
2627}
2615int is_skx(unsigned int family, unsigned int model) 2628int is_skx(unsigned int family, unsigned int model)
2616{ 2629{
2617 2630
@@ -3933,6 +3946,10 @@ void process_cpuid()
3933 BIC_NOT_PRESENT(BIC_CPU_c7); 3946 BIC_NOT_PRESENT(BIC_CPU_c7);
3934 BIC_NOT_PRESENT(BIC_Pkgpc7); 3947 BIC_NOT_PRESENT(BIC_Pkgpc7);
3935 } 3948 }
3949 if (is_bdx(family, model)) {
3950 BIC_NOT_PRESENT(BIC_CPU_c7);
3951 BIC_NOT_PRESENT(BIC_Pkgpc7);
3952 }
3936 if (has_hsw_msrs(family, model)) { 3953 if (has_hsw_msrs(family, model)) {
3937 BIC_PRESENT(BIC_Pkgpc8); 3954 BIC_PRESENT(BIC_Pkgpc8);
3938 BIC_PRESENT(BIC_Pkgpc9); 3955 BIC_PRESENT(BIC_Pkgpc9);