diff mbox

[09/10] ARM: SMP: add function arch_send_wakeup_ipi_mask()

Message ID 1351005779-30347-10-git-send-email-shawn.guo@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Shawn Guo Oct. 23, 2012, 3:22 p.m. UTC
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>
Cc: Russell King <linux@arm.linux.org.uk>
---
 arch/arm/include/asm/smp.h |    1 +
 arch/arm/kernel/smp.c      |    5 +++++
 2 files changed, 6 insertions(+)

Comments

Shawn Guo Oct. 31, 2012, 3:43 a.m. UTC | #1
On Tue, Oct 23, 2012 at 11:22:58PM +0800, Shawn Guo wrote:
> 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>
> Cc: Russell King <linux@arm.linux.org.uk>

Hi Russell,

Can I ask for your ack to have the patch go via arm-soc being part
of the series?

Shawn
Shawn Guo Nov. 2, 2012, 1:42 p.m. UTC | #2
On Wed, Oct 31, 2012 at 11:43:34AM +0800, Shawn Guo wrote:
> On Tue, Oct 23, 2012 at 11:22:58PM +0800, Shawn Guo wrote:
> > 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>
> > Cc: Russell King <linux@arm.linux.org.uk>
> 
> Hi Russell,
> 
> Can I ask for your ack to have the patch go via arm-soc being part
> of the series?
> 
Ping

Shawn
Shawn Guo Nov. 6, 2012, 3:18 a.m. UTC | #3
On Fri, Nov 02, 2012 at 09:42:24PM +0800, Shawn Guo wrote:
> On Wed, Oct 31, 2012 at 11:43:34AM +0800, Shawn Guo wrote:
> > On Tue, Oct 23, 2012 at 11:22:58PM +0800, Shawn Guo wrote:
> > > 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>
> > > Cc: Russell King <linux@arm.linux.org.uk>
> > 
> > Hi Russell,
> > 
> > Can I ask for your ack to have the patch go via arm-soc being part
> > of the series?
> > 
> Ping
> 
Okay, just tried another way around - put it into patch track system.

Shawn
diff mbox

Patch

diff --git a/arch/arm/include/asm/smp.h b/arch/arm/include/asm/smp.h
index 2e3be16..d3a22be 100644
--- a/arch/arm/include/asm/smp.h
+++ b/arch/arm/include/asm/smp.h
@@ -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
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 8e20754d..dd5dd02 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -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);