tools/power/turbostat: Improve probe_platform_features() logic
authorZhang Rui <rui.zhang@intel.com>
Thu, 31 Aug 2023 06:44:06 +0000 (14:44 +0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 27 Sep 2023 14:14:20 +0000 (22:14 +0800)
commit32e8c6169af7ef7c938b1bd996d27ab171e27d80
tree9bec9aa790ce75c563bd8830a000368e18f007da
parentd085b3b0f11af7d23601b832e0d9e446d18df968
tools/power/turbostat: Improve probe_platform_features() logic

AMD/Hygon platforms that don't have RAPL use 'amd_features' to describe
the platform features. Unknown Intel platforms use 'default_features' to
describe the platform features.

As none of the platform feature is set for 'amd_features' or
'default_features', there is no need to maintain both of them.

Remove 'amd_features' structure and improve the logic in
probe_platform_features().

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