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

MIPS: Provide empty mips_mt_set_cpuoptions when CONFIG_MIPS_MT=n

Both the CONFIG_MIPS_CPS & CONFIG_MIPS_CMP SMP implementations call
mips_mt_set_cpuoptions when preparing to start secondary CPUs. However
both may be used without MT. Provide an empty inline function to prevent
a link error in this case.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6647/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Paul Burton and committed by
Ralf Baechle
d94c90f8 49992cb1

+5
+5
arch/mips/include/asm/mips_mt.h
··· 18 18 extern unsigned long mt_fpemul_threshold; 19 19 20 20 extern void mips_mt_regdump(unsigned long previous_mvpcontrol_value); 21 + 22 + #ifdef CONFIG_MIPS_MT 21 23 extern void mips_mt_set_cpuoptions(void); 24 + #else 25 + static inline void mips_mt_set_cpuoptions(void) { } 26 + #endif 22 27 23 28 struct class; 24 29 extern struct class *mt_class;