ARM: 7571/1: SMP: add function arch_send_wakeup_ipi_mask()
authorShawn Guo <shawn.guo@linaro.org>
Tue, 6 Nov 2012 02:48:40 +0000 (03:48 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 13 Nov 2012 11:47:40 +0000 (11:47 +0000)
Add function arch_send_wakeup_ipi_mask(), so that platform code can
use it as an easy way to wake up cores that are in WFI.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/smp.h
arch/arm/kernel/smp.c

index 2e3be16c676687bec85e10f62f159f5a61c69194..d3a22bebe6ce415c952cbb631929aa1a37157ea6 100644 (file)
@@ -79,6 +79,7 @@ extern void cpu_die(void);
 
 extern void arch_send_call_function_single_ipi(int cpu);
 extern void arch_send_call_function_ipi_mask(const struct cpumask *mask);
+extern void arch_send_wakeup_ipi_mask(const struct cpumask *mask);
 
 struct smp_operations {
 #ifdef CONFIG_SMP
index 8e20754dd31d5946f5297aae2023ae2c8d5cd572..dd5dd0248b88b01a483a4c5d2aaf74bbc01c4945 100644 (file)
@@ -415,6 +415,11 @@ void arch_send_call_function_ipi_mask(const struct cpumask *mask)
        smp_cross_call(mask, IPI_CALL_FUNC);
 }
 
+void arch_send_wakeup_ipi_mask(const struct cpumask *mask)
+{
+       smp_cross_call(mask, IPI_WAKEUP);
+}
+
 void arch_send_call_function_single_ipi(int cpu)
 {
        smp_cross_call(cpumask_of(cpu), IPI_CALL_FUNC_SINGLE);