summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRobert Marko <robimarko@gmail.com>2024-05-12 21:18:19 +0200
committerRobert Marko <robimarko@gmail.com>2024-05-14 13:23:57 +0200
commit4341901f050058aba0f908c775a4d136c311062c (patch)
tree1f902aae881ecb1fbab9b8423f05d1adf9329db4 /config
parent0868268c9fd4397411e9629eedda35b1547e798e (diff)
downloadopenwrt-4341901f050058aba0f908c775a4d136c311062c.tar.gz
openwrt-4341901f050058aba0f908c775a4d136c311062c.tar.bz2
openwrt-4341901f050058aba0f908c775a4d136c311062c.zip
config: add ARM PMUv3 for kernel 6.6
Kernel 6.6 has moved the ARM PMUv3 driver to drivers/perf and now once KERNEL_ARM_PMU is selected trying to build the kernel will stop with: ARM PMUv3 support (ARM_PMUV3) [N/y/?] (NEW) So, lets enable ARM_PMUV3 for ARMv7 and ARMv8 architectures if KERNEL_PERF_EVENTS is selected. Fixes: #15466 Link: https://github.com/openwrt/openwrt/pull/15469 Signed-off-by: Robert Marko <robimarko@gmail.com>
Diffstat (limited to 'config')
-rw-r--r--config/Config-kernel.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index feabf0870e..0acd320504 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -50,6 +50,11 @@ config KERNEL_ARM_PMU
default y if TARGET_armsr_armv8
depends on (arm || aarch64)
+config KERNEL_ARM_PMUV3
+ bool
+ default y if TARGET_armsr_armv8
+ depends on (arm_v7 || aarch64) && LINUX_6_6
+
config KERNEL_RISCV_PMU
bool
select KERNEL_RISCV_PMU_SBI
@@ -79,6 +84,7 @@ config KERNEL_X86_VSYSCALL_EMULATION
config KERNEL_PERF_EVENTS
bool "Compile the kernel with performance events and counters"
select KERNEL_ARM_PMU if (arm || aarch64)
+ select KERNEL_ARM_PMUV3 if (arm_v7 || aarch64) && LINUX_6_6
select KERNEL_RISCV_PMU if riscv64
config KERNEL_PROFILING