smp_call_function() is inline for SMP but macro for non SMP.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
diff --git a/include/asm-mips/smp.h b/include/asm-mips/smp.h
index af23139..aa3778f 100644
--- a/include/asm-mips/smp.h
+++ b/include/asm-mips/smp.h
@@ -111,10 +111,10 @@ static inline void smp_send_reschedule(i
extern asmlinkage void smp_call_function_interrupt(void);
-#endif /* CONFIG_SMP */
-
int smp_call_function(void(*func)(void *info), void *info, int retry, int
wait);
+#endif /* CONFIG_SMP */
+
/*
* Special Variant of smp_call_function for use by cache functions:
*
@@ -127,7 +127,8 @@ int smp_call_function(void(*func)(void *
*/
static inline void __on_other_cores(void (*func) (void *info), void *info)
{
-#if !defined(CONFIG_MIPS_MT_SMP) && !defined(CONFIG_MIPS_MT_SMTC)
+#if defined(CONFIG_SMP) && \
+ !defined(CONFIG_MIPS_MT_SMP) && !defined(CONFIG_MIPS_MT_SMTC)
smp_call_function(func, info, 1, 1);
#endif
}
|