OSDN Git Service

MIPS: arch_send_call_function_single_ipi() calling conventions change
authorLiangliang Huang <huanglllzu@gmail.com>
Thu, 23 Apr 2020 23:44:21 +0000 (19:44 -0400)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 24 Apr 2020 16:27:51 +0000 (18:27 +0200)
Use mp_ops->send_ipi_single() instead of mp_ops->send_ipi_mask() in
arch_send_call_function_single_ipi(). send_ipi_single() can send
IPI signal to a special cpu more efficiently.

Signed-off-by: Liangliang Huang <huangll@lemote.com>
Reviewed-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/smp.h

index 7990c1c..5d9ff61 100644 (file)
@@ -125,7 +125,7 @@ static inline void arch_send_call_function_single_ipi(int cpu)
 {
        extern const struct plat_smp_ops *mp_ops;       /* private */
 
-       mp_ops->send_ipi_mask(cpumask_of(cpu), SMP_CALL_FUNCTION);
+       mp_ops->send_ipi_single(cpu, SMP_CALL_FUNCTION);
 }
 
 static inline void arch_send_call_function_ipi_mask(const struct cpumask *mask)