config: add ARM PMUv3 for kernel 6.6
[openwrt/openwrt.git] / config / Config-kernel.in
index feabf0870e50c7a95164fca3fa5f2c48506c7987..0acd32050436e46676014fcbad33140111221b43 100644 (file)
@@ -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