]> www.infradead.org Git - users/hch/misc.git/commit
tools/power turbostat: Clean up add perf/msr counter logic
authorZhang Rui <rui.zhang@intel.com>
Sat, 17 May 2025 09:35:17 +0000 (17:35 +0800)
committerLen Brown <len.brown@intel.com>
Sun, 8 Jun 2025 18:10:16 +0000 (14:10 -0400)
commit0362337968ad252e6563fff131906a43450d8940
treefb3c1e9736d469b703aff1073fd847e83dee6ba0
parent1ab2e19b4c52ee08700938d52024d85bd15c9721
tools/power turbostat: Clean up add perf/msr counter logic

Increase the code readability by moving the no_perf/no_msr flag and the
cai->perf_name/cai->msr sanity checks into the counter probe functions.

No functional change.

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