Skip to content

Commit

Permalink
RISC-V: Provide stub of setup_profiling_timer()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olof Johansson authored and Palmer Dabbelt committed Nov 30, 2017
1 parent 24948b7 commit 4bde632
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/riscv/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4bde632

Please sign in to comment.