tools/power/turbostat: Relocate pstate probing code
authorZhang Rui <rui.zhang@intel.com>
Thu, 31 Aug 2023 07:58:10 +0000 (15:58 +0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 27 Sep 2023 14:14:20 +0000 (22:14 +0800)
commit11cd9a09f3e827605cf8fc7c343ddb8c9f4ee95d
tree0ddb546ed9cf51949ebb272c2e964a2781c2ef1a
parent045acf6064c5567011163e97c28906e0a7791414
tools/power/turbostat: Relocate pstate probing code

Introduce probe_pstates() and move all pstate probing related code into
it.

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