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>
This commit is contained in:
parent
31e07522be
commit
ade0ebacdf
|
@ -2612,6 +2612,19 @@ int is_dnv(unsigned int family, unsigned int model)
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
int is_bdx(unsigned int family, unsigned int model)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (!genuine_intel)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
switch (model) {
|
||||||
|
case INTEL_FAM6_BROADWELL_X:
|
||||||
|
case INTEL_FAM6_BROADWELL_XEON_D:
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
int is_skx(unsigned int family, unsigned int model)
|
int is_skx(unsigned int family, unsigned int model)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -3933,6 +3946,10 @@ void process_cpuid()
|
||||||
BIC_NOT_PRESENT(BIC_CPU_c7);
|
BIC_NOT_PRESENT(BIC_CPU_c7);
|
||||||
BIC_NOT_PRESENT(BIC_Pkgpc7);
|
BIC_NOT_PRESENT(BIC_Pkgpc7);
|
||||||
}
|
}
|
||||||
|
if (is_bdx(family, model)) {
|
||||||
|
BIC_NOT_PRESENT(BIC_CPU_c7);
|
||||||
|
BIC_NOT_PRESENT(BIC_Pkgpc7);
|
||||||
|
}
|
||||||
if (has_hsw_msrs(family, model)) {
|
if (has_hsw_msrs(family, model)) {
|
||||||
BIC_PRESENT(BIC_Pkgpc8);
|
BIC_PRESENT(BIC_Pkgpc8);
|
||||||
BIC_PRESENT(BIC_Pkgpc9);
|
BIC_PRESENT(BIC_Pkgpc9);
|
||||||
|
|
Loading…
Reference in New Issue