diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2013-09-19 18:00:29 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-01-22 20:18:56 +0100 |
commit | 40149889ce4d3c99fdbea6b6ca803bb872daebb5 (patch) | |
tree | 0e12f52b45eabaf40b6a5b95f3835aaa83f5b20c /arch/mips | |
parent | 710d86f8bc4515a906799b85135e6f6962703e01 (diff) | |
download | linux-40149889ce4d3c99fdbea6b6ca803bb872daebb5.tar.gz linux-40149889ce4d3c99fdbea6b6ca803bb872daebb5.tar.bz2 linux-40149889ce4d3c99fdbea6b6ca803bb872daebb5.zip |
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 <markos.chandras@imgtec.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/5860/
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/kernel/smp-cmp.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 = { |