tools/power turbostat: Ignore pkg_cstate_limit when it is not available
authorPatryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Thu, 9 May 2024 10:39:47 +0000 (12:39 +0200)
committerLen Brown <len.brown@intel.com>
Thu, 16 May 2024 01:50:16 +0000 (21:50 -0400)
commit29fea61cd8d4d0e646022c0479aa35381cf1e990
tree7c226c4ab6e0c5443aa54db940ac342fd610c5f3
parent4e7ee02300805d26d9731fd24c4de8e10a43ffea
tools/power turbostat: Ignore pkg_cstate_limit when it is not available

When running in no-msr mode, the pkg_cstate_limit is not populated, thus
we use perf to determine if given pcstate counter is present on the
platform.

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