summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2017-11-29 17:55:17 -0800
committerPalmer Dabbelt <palmer@sifive.com>2017-11-30 10:12:15 -0800
commit4bde63286a6c7c76fe05ff0e03ad253f5260b104 (patch)
treed5999cd73c4963a7833fd2ab7c239652f8919d32
parent24948b7ec0f31d36dc900088b140c4f9551b6f56 (diff)
downloadlwn-4bde63286a6c7c76fe05ff0e03ad253f5260b104.tar.gz
lwn-4bde63286a6c7c76fe05ff0e03ad253f5260b104.zip
RISC-V: Provide stub of setup_profiling_timer()
Fixes the following on allmodconfig build: profile.c:(.text+0x3e4): undefined reference to `setup_profiling_timer' Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
-rw-r--r--arch/riscv/kernel/smp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c
index b4a71ec5906f..17014c68e9fe 100644
--- a/arch/riscv/kernel/smp.c
+++ b/arch/riscv/kernel/smp.c
@@ -38,6 +38,13 @@ enum ipi_message_type {
IPI_MAX
};
+
+/* Unsupported */
+int setup_profiling_timer(unsigned int multiplier)
+{
+ return -EINVAL;
+}
+
irqreturn_t handle_ipi(void)
{
unsigned long *pending_ipis = &ipi_data[smp_processor_id()].bits;