diff mbox series

tools/power turbostat: turbostat: Correct RAPL_GFX_ALL macro to use RAPL_GFX_POLICY

Message ID 20250523080659.3361452-1-kaushlendra.kumar@intel.com
State New
Headers show
Series tools/power turbostat: turbostat: Correct RAPL_GFX_ALL macro to use RAPL_GFX_POLICY | expand

Commit Message

Kaushlendra Kumar May 23, 2025, 8:06 a.m. UTC
The RAPL_GFX_ALL macro was incorrectly defined with RAPL_GFX_POLIGY,
which is not a valid identifier. This patch corrects the macro to use
RAPL_GFX_POLICY, as defined in the rapl_msrs enum, ensuring that all
GFX-related RAPL MSRs are properly grouped for feature checks and
platform support logic.

Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
---
 tools/power/x86/turbostat/turbostat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 089220aaa5c9..a8f9cf9206bb 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -512,7 +512,7 @@  enum rapl_msrs {
 #define RAPL_PKG_ALL	(RAPL_PKG | RAPL_PKG_PERF_STATUS | RAPL_PKG_POWER_INFO)
 #define RAPL_DRAM_ALL	(RAPL_DRAM | RAPL_DRAM_PERF_STATUS | RAPL_DRAM_POWER_INFO)
 #define RAPL_CORE_ALL	(RAPL_CORE | RAPL_CORE_POLICY)
-#define RAPL_GFX_ALL	(RAPL_GFX | RAPL_GFX_POLIGY)
+#define RAPL_GFX_ALL	(RAPL_GFX | RAPL_GFX_POLICY)
 
 #define RAPL_AMD_F17H	(RAPL_AMD_PWR_UNIT | RAPL_AMD_CORE_ENERGY_STAT | RAPL_AMD_PKG_ENERGY_STAT)