tools/power turbostat: Cleanup CNL-specific code
authorLen Brown <len.brown@intel.com>
Tue, 19 Mar 2019 21:55:06 +0000 (17:55 -0400)
committerLen Brown <len.brown@intel.com>
Thu, 21 Mar 2019 02:55:44 +0000 (22:55 -0400)
no functional change.

Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c

index 861cb795679b7c535c8b6128245b067b197e76a2..f2384ee98cdc84e6138d3801013b4b3c324bffad 100644 (file)
@@ -63,7 +63,6 @@ unsigned int dump_only;
 unsigned int do_snb_cstates;
 unsigned int do_knl_cstates;
 unsigned int do_slm_cstates;
-unsigned int do_cnl_cstates;
 unsigned int use_c1_residency_msr;
 unsigned int has_aperf;
 unsigned int has_epb;
@@ -4701,9 +4700,8 @@ void process_cpuid()
        }
        do_slm_cstates = is_slm(family, model);
        do_knl_cstates  = is_knl(family, model);
-       do_cnl_cstates = is_cnl(family, model);
 
-       if (do_slm_cstates || do_knl_cstates || do_cnl_cstates)
+       if (do_slm_cstates || do_knl_cstates || is_cnl(family, model))
                BIC_NOT_PRESENT(BIC_CPU_c3);
 
        if (!quiet)