aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/riscv/kernel/Makefile
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2020-05-07 23:04:45 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-05-12 16:21:46 -0700
commit48084c3595cb7429f6ba734cfea1313573b9a7fa (patch)
tree305785d6b4ee85ea3d3c640e306a9cee466dc9bf /arch/riscv/kernel/Makefile
parentriscv: perf_event: Make some funciton static (diff)
downloadwireguard-linux-48084c3595cb7429f6ba734cfea1313573b9a7fa.tar.xz
wireguard-linux-48084c3595cb7429f6ba734cfea1313573b9a7fa.zip
riscv: perf: RISCV_BASE_PMU should be independent
Selecting PERF_EVENTS without selecting RISCV_BASE_PMU results in a build error. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> [Palmer: commit text] Fixes: 178e9fc47aae("perf: riscv: preliminary RISC-V support") Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to '')
-rw-r--r--arch/riscv/kernel/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/Makefile b/arch/riscv/kernel/Makefile
index 86c83081044f..d8bbd3207100 100644
--- a/arch/riscv/kernel/Makefile
+++ b/arch/riscv/kernel/Makefile
@@ -43,7 +43,7 @@ obj-$(CONFIG_MODULE_SECTIONS) += module-sections.o
obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o
-obj-$(CONFIG_PERF_EVENTS) += perf_event.o
+obj-$(CONFIG_RISCV_BASE_PMU) += perf_event.o
obj-$(CONFIG_PERF_EVENTS) += perf_callchain.o
obj-$(CONFIG_HAVE_PERF_REGS) += perf_regs.o
obj-$(CONFIG_RISCV_SBI) += sbi.o