From: Olof Johansson Date: Thu, 30 Nov 2017 01:55:17 +0000 (-0800) Subject: RISC-V: Provide stub of setup_profiling_timer() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4bde63286a6c7c76fe05ff0e03ad253f5260b104;p=linux.git 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 Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c index b4a71ec5906f6..17014c68e9fea 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;