Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://patch.msgid.link/20260331211950.3329932-3-sathyanarayanan.kuppuswamy@linux.intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Kuppuswamy Sathyanarayanan and committed by
Rafael J. Wysocki
3e6996c0 e648c7ac

-8
-8
drivers/powercap/intel_rapl_common.c
··· 96 96 /* per domain data, some are optional */ 97 97 #define NR_RAW_PRIMITIVES (NR_RAPL_PRIMITIVES - 2) 98 98 99 - #define DOMAIN_STATE_INACTIVE BIT(0) 100 - #define DOMAIN_STATE_POWER_LIMIT_SET BIT(1) 101 - 102 - /* Sideband MBI registers */ 103 - #define IOSF_CPU_POWER_BUDGET_CTL_BYT 0x02 104 - #define IOSF_CPU_POWER_BUDGET_CTL_TNG 0xDF 105 - 106 99 #define PACKAGE_PLN_INT_SAVED BIT(0) 107 - #define MAX_PRIM_NAME 32 108 100 109 101 #define RAPL_EVENT_MASK GENMASK(7, 0) 110 102