On 06/18/2015 04:30 PM, Tony Wu wrote: > Guard mips_mt_set_cpuoptions with MT specific options to > avoid undefined reference error on multicore platform > without multithreading support. > > Signed-off-by: Tony Wu <tung7970@xxxxxxxxx> > Cc: Paul Burton <paul.burton@xxxxxxxxxx> > Cc: linux-mips@xxxxxxxxxxxxxx > --- > arch/mips/kernel/smp-cps.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/arch/mips/kernel/smp-cps.c b/arch/mips/kernel/smp-cps.c > index 5570bc8..85633d6 100644 > --- a/arch/mips/kernel/smp-cps.c > +++ b/arch/mips/kernel/smp-cps.c > @@ -102,7 +102,8 @@ static void __init cps_prepare_cpus(unsigned int max_cpus) > bool cca_unsuitable; > u32 *entry_code; > > - mips_mt_set_cpuoptions(); > + if (config_enabled(CONFIG_MIPS_MT_SMP) && cpu_has_mipsmt) > + mips_mt_set_cpuoptions(); > > /* Detect whether the CCA is unsuited to multi-core SMP */ > cca = read_c0_config() & CONF_CM_CMASK; > How come you hit a build problem here? according to arch/mips/include/asm/mips_mt.h the mips_mt_set_cpuoptions() is a NOP when CONFIG_MIPS_MT is not selected so it should work for non-MT multicore CPUs. Am I missing something? -- markos