Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] SMTC: Move MIPS_CPU_IPI_IRQ definition into header.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+10 -2
-2
arch/mips/kernel/smtc.c
··· 28 28 * This file should be built into the kernel only if CONFIG_MIPS_MT_SMTC is set. 29 29 */ 30 30 31 - #define MIPS_CPU_IPI_IRQ 1 32 - 33 31 #define LOCK_MT_PRA() \ 34 32 local_irq_save(flags); \ 35 33 mtflags = dmt()
+10
include/asm-mips/smtc.h
··· 55 55 56 56 #define PARKED_INDEX ((unsigned int)0x80000000) 57 57 58 + /* 59 + * Define low-level interrupt mask for IPIs, if necessary. 60 + * By default, use SW interrupt 1, which requires no external 61 + * hardware support, but which works only for single-core 62 + * MIPS MT systems. 63 + */ 64 + #ifndef MIPS_CPU_IPI_IRQ 65 + #define MIPS_CPU_IPI_IRQ 1 66 + #endif 67 + 58 68 #endif /* _ASM_SMTC_MT_H */