From: Kuppuswamy Sathyanarayanan Date: Tue, 31 Mar 2026 21:19:45 +0000 (-0700) Subject: powercap: intel_rapl: Remove unused macro definitions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e6996c0cbdbc32cfef4646660b994c1e0d96387;p=thirdparty%2Fkernel%2Flinux.git powercap: intel_rapl: Remove unused macro definitions 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 Link: https://patch.msgid.link/20260331211950.3329932-3-sathyanarayanan.kuppuswamy@linux.intel.com Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/powercap/intel_rapl_common.c b/drivers/powercap/intel_rapl_common.c index 1e81462830094..f2637cc2cc6a8 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)