diff options
author | Qingfang Deng <dqfext@gmail.com> | 2024-03-12 10:08:30 +0800 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2024-03-23 17:28:55 +0100 |
commit | 686cc58c10a48b58a9eef601f3697c9ec4019da6 (patch) | |
tree | e71d3129dd7c65e68c2eea1ade37ecd84dac96c2 /config | |
parent | a91b79fd04d58e711273d08e0b1246942b2eec98 (diff) | |
download | openwrt-686cc58c10a48b58a9eef601f3697c9ec4019da6.tar.gz openwrt-686cc58c10a48b58a9eef601f3697c9ec4019da6.tar.bz2 openwrt-686cc58c10a48b58a9eef601f3697c9ec4019da6.zip |
kernel: support RISC-V PMU
Add RISC-V PMU config symbols and enable them for riscv64.
Signed-off-by: Qingfang Deng <dqfext@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/Config-kernel.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 2e59bc9551..f4ea6ccbe8 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -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" |