tools/power turbostat: Always print idle in the system configuration header
authorDoug Smythies <doug.smythies@gmail.com>
Thu, 26 Mar 2020 20:36:37 +0000 (13:36 -0700)
committerLen Brown <len.brown@intel.com>
Thu, 3 Sep 2020 17:55:17 +0000 (13:55 -0400)
If the --quiet option is not used, turbostat prints a useful system
configuration header during startup.

But inclusion of idle system configuration information in this header
is currently a function of inclusion in the columns chosen to be displayed.

Always list this idle system configuration.

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

index 4c679568fda4d351cbc1c6384989dbd7c5438c52..4edad3fc760af4cc9b76dc7ba86423ac0c2fb24a 100644 (file)
@@ -3530,9 +3530,6 @@ dump_sysfs_cstate_config(void)
        int state;
        char *sp;
 
-       if (!DO_BIC(BIC_sysfs))
-               return;
-
        if (access("/sys/devices/system/cpu/cpuidle", R_OK)) {
                fprintf(outf, "cpuidle not loaded\n");
                return;