Hi All,
Our platform adopts MIPS1004Kc CPS with 2 core (2 VPEs/core), so I selected CONFIG_MIPS_CPS and CONFIG_MIPS_MT_SMP option for Linux-3.18. But I got one issue about r4k_on_each_cpu. If I defined CONFIG_MIPS_MT_SMP, “r4k_on_each_cpu” does not call smp_call_function for other cores to do something. Like r4k_on_each_cpu(local_r4k___flush_cache_all, NULL).
Is this behavior right?Or should I only select CONFIG_MIPS_CPS for 1004K CPS with 4 VPEs?
static inline void r4k_on_each_cpu(void (*func) (void *info), void *info)
{
preempt_disable();
#ifndef CONFIG_MIPS_MT_SMP
smp_call_function(func, info, 1);
#endif
func(info);
preempt_enable();
}