tools/power/turbostat: Relocate thermal probing code
authorZhang Rui <rui.zhang@intel.com>
Thu, 31 Aug 2023 08:02:16 +0000 (16:02 +0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 27 Sep 2023 14:14:20 +0000 (22:14 +0800)
commitdb735f8ba78bf7692579b78f0ca1e40563ef79fd
tree4434adec3f235067dde34a0e9bd40a189c2304b5
parente7d7b82de192464b733fb2bcc9e305ea6f6ea47e
tools/power/turbostat: Relocate thermal probing code

Introduce probe_thermal(), and move all thermal 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