[PATCH v1 2/6] powercap: intel_rapl: Remove unused macro definitions
From: Kuppuswamy Sathyanarayanan
Date: Fri Mar 13 2026 - 14:53:46 EST
Remove the following unused macro definitions from the RAPL common
driver:
* DOMAIN_STATE_INACTIVE and DOMAIN_STATE_POWER_LIMIT_SET
* IOSF_CPU_POWER_BUDGET_CTL_BYT and IOSF_CPU_POWER_BUDGET_CTL_TNG
* MAX_PRIM_NAME
No functional changes.
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx>
---
drivers/powercap/intel_rapl_common.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/drivers/powercap/intel_rapl_common.c b/drivers/powercap/intel_rapl_common.c
index 8c838e2e457d..fdcac4a173a8 100644
--- a/drivers/powercap/intel_rapl_common.c
+++ b/drivers/powercap/intel_rapl_common.c
@@ -96,15 +96,7 @@
/* per domain data, some are optional */
#define NR_RAW_PRIMITIVES (NR_RAPL_PRIMITIVES - 2)
-#define DOMAIN_STATE_INACTIVE BIT(0)
-#define DOMAIN_STATE_POWER_LIMIT_SET BIT(1)
-
-/* Sideband MBI registers */
-#define IOSF_CPU_POWER_BUDGET_CTL_BYT 0x02
-#define IOSF_CPU_POWER_BUDGET_CTL_TNG 0xDF
-
#define PACKAGE_PLN_INT_SAVED BIT(0)
-#define MAX_PRIM_NAME 32
#define RAPL_EVENT_MASK GENMASK(7, 0)
--
2.43.0