0
0
mirror of https://git.openwrt.org/openwrt/openwrt.git/ synced 2025-10-06 03:12:40 +02:00

kernel: support RISC-V PMU

Add RISC-V PMU config symbols and enable them for riscv64.

Signed-off-by: Qingfang Deng <dqfext@gmail.com>
This commit is contained in:
Qingfang Deng
2024-03-12 10:08:30 +08:00
committed by Hauke Mehrtens
parent a91b79fd04
commit 686cc58c10
3 changed files with 16 additions and 0 deletions

View File

@@ -50,6 +50,15 @@ config KERNEL_ARM_PMU
default y if TARGET_armsr_armv8
depends on (arm || aarch64)
config KERNEL_RISCV_PMU
bool
select KERNEL_RISCV_PMU_SBI
depends on riscv64
config KERNEL_RISCV_PMU_SBI
bool
depends on riscv64
config KERNEL_X86_VSYSCALL_EMULATION
bool "Enable vsyscall emulation"
depends on x86_64
@@ -70,6 +79,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_RISCV_PMU if riscv64
config KERNEL_PROFILING
bool "Compile the kernel with profiling enabled"