From: Markos Chandras Date: Thu, 19 Sep 2013 17:00:29 +0000 (+0100) Subject: MIPS: kernel: smp-cmp: MIPS MT code needs CONFIG_MIPS_MT X-Git-Tag: next-20140116~105^2^2~106 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e1a161599220923b293c5652fc8fb186496474a7;p=karo-tx-linux.git MIPS: kernel: smp-cmp: MIPS MT code needs CONFIG_MIPS_MT The mips_mt_* symbols are only built and exported if CONFIG_MIPS_MT is enabled. Fixes the following build problem when CONFIG_SMP is enabled but CONFIG_MIPS_MT is not. arch/mips/built-in.o: In function `cmp_prepare_cpus': arch/mips/kernel/smp-cmp.c:197: undefined reference to `mips_mt_set_cpuoptions' Signed-off-by: Markos Chandras Acked-by: John Crispin Patchwork: http://patchwork.linux-mips.org/patch/5860/ --- diff --git a/arch/mips/kernel/smp-cmp.c b/arch/mips/kernel/smp-cmp.c index 5969f1e9b62a..1b925d8a610c 100644 --- a/arch/mips/kernel/smp-cmp.c +++ b/arch/mips/kernel/smp-cmp.c @@ -199,11 +199,14 @@ void __init cmp_prepare_cpus(unsigned int max_cpus) pr_debug("SMPCMP: CPU%d: %s max_cpus=%d\n", smp_processor_id(), __func__, max_cpus); +#ifdef CONFIG_MIPS_MT /* * FIXME: some of these options are per-system, some per-core and * some per-cpu */ mips_mt_set_cpuoptions(); +#endif + } struct plat_smp_ops cmp_smp_ops = {