• Adam Hawley's avatar
    tools/power turbostat: Fix unc freq columns not showing with '-q' or '-l' · c5120a33
    Adam Hawley authored
    Commit 78464d76 ("tools/power turbostat: Add columns for clustered
    uncore frequency") introduced 'probe_intel_uncore_frequency_cluster()'
    in a way which prevents printing uncore frequency columns if either of
    the '-q' or '-l' options are used. Systems which do not have multiple
    uncore frequencies per package are unaffected by this regression.
    
    Fix the function so that uncore frequency columns are shown when either
    the '-l' or '-q' option is used by checking if 'quiet' is true after
    adding counters for the uncore frequency columns.
    
    Fixes: 78464d76 ("tools/power turbostat: Add columns for clustered uncore frequency")
    Signed-off-by: default avatarAdam Hawley <adam.james.hawley@intel.com>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    c5120a33
turbostat.c 228 KB