]> www.infradead.org Git - nvme.git/commit
tools/power turbostat: Enhance platform divergence description
authorZhang Rui <rui.zhang@intel.com>
Thu, 14 Nov 2024 07:59:42 +0000 (15:59 +0800)
committerLen Brown <len.brown@intel.com>
Sat, 30 Nov 2024 21:42:06 +0000 (16:42 -0500)
commit1958f4e16864f78ab121de08ba4d7a984ed46891
tree5ddfade6104a86b1345bde6a2d10935e496c2bdc
parentd39d586ee44407ec89b9527a9c1f27a91d6b05d1
tools/power turbostat: Enhance platform divergence description

In various generations, platforms often share a majority of features,
diverging only in a few specific aspects. The current approach of using
hardcoded values in 'platform_features' structure fails to effectively
represent these divergences.

To improve the description of platform divergence:
1. Each newly introduced 'platform_features' structure must have a base,
   typically derived from the previous generation.
2. Platform feature values should be inherited from the base structure
   rather than being hardcoded.
This approach ensures a more accurate and maintainable representation of
platform-specific features across different generations.

Converts `adl_features` and `lnl_features` to follow this new scheme.

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