From 515db1e0694ab32bccdb710bbae00abc19faab9f Mon Sep 17 00:00:00 2001 From: John Audia Date: Sat, 15 Mar 2025 10:54:53 -0400 Subject: [PATCH] x86: config-6.12: enable RAPL interface Expose the sysfs interface to userspace tools for power monitoring. Useful for tracking energy usage in CPU package, cores, DRAM, etc. Build system: x86/64 Build-tested: x86/64 Run-tested: x86/64 Signed-off-by: John Audia Link: https://github.com/openwrt/openwrt/pull/18255 Signed-off-by: Hauke Mehrtens --- target/linux/x86/config-6.12 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/linux/x86/config-6.12 b/target/linux/x86/config-6.12 index b3ef0a20a0c..a3a60c4e0b4 100644 --- a/target/linux/x86/config-6.12 +++ b/target/linux/x86/config-6.12 @@ -190,6 +190,7 @@ CONFIG_IA32_FEAT_CTL=y # CONFIG_IB700_WDT is not set # CONFIG_IBMASR is not set # CONFIG_IBM_RTL is not set +CONFIG_IDLE_INJECT=y # CONFIG_IE6XX_WDT is not set CONFIG_ILLEGAL_POINTER_VALUE=0 CONFIG_INITRAMFS_SOURCE="" @@ -200,7 +201,9 @@ CONFIG_INSTRUCTION_DECODER=y # CONFIG_INTEL_HFI_THERMAL is not set # CONFIG_INTEL_LDMA is not set # CONFIG_INTEL_PCH_THERMAL is not set -# CONFIG_INTEL_POWERCLAMP is not set +CONFIG_INTEL_POWERCLAMP=y +CONFIG_INTEL_RAPL=y +CONFIG_INTEL_RAPL_CORE=y # CONFIG_INTEL_SCU_PCI is not set # CONFIG_INTEL_TCC_COOLING is not set # CONFIG_INTEL_VSEC is not set @@ -338,6 +341,7 @@ CONFIG_PHYSICAL_ALIGN=0x100000 CONFIG_PHYSICAL_START=0x1000000 # CONFIG_PHY_INTEL_LGM_EMMC is not set CONFIG_POSIX_CPU_TIMERS_TASK_WORK=y +CONFIG_POWERCAP=y CONFIG_POWER_SUPPLY=y # CONFIG_PROCESSOR_SELECT is not set CONFIG_PROC_PAGE_MONITOR=y -- 2.47.2