summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2017-11-30 02:55:17 +0100
committerPalmer Dabbelt <palmer@sifive.com>2017-11-30 19:12:15 +0100
commit4bde63286a6c7c76fe05ff0e03ad253f5260b104 (patch)
treed5999cd73c4963a7833fd2ab7c239652f8919d32 /arch/riscv/kernel
parentRISC-V: Export some expected symbols for modules (diff)
downloadlinux-4bde63286a6c7c76fe05ff0e03ad253f5260b104.tar.xz
linux-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>
Diffstat (limited to 'arch/riscv/kernel')
-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;