diff mbox

irqchip: fix typo when moving gic_raise_softirq()

Message ID 1361281942-16885-1-git-send-email-javi.merino@arm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Javi Merino Feb. 19, 2013, 1:52 p.m. UTC
In b1cffebf (ARM: GIC: remove direct use of gic_raise_softirq)
gic_raise_softirq() was moved inside arch/arm/common/gic.c but in the
process it reverted by mistake a change to that function made by
384a290 (ARM: gic: use a private mapping for CPU target interfaces).
This breaks multicluster systems on ARM.

This patch fixes the typo.

Cc: Olof Johansson <olof@lixom.net>
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Javi Merino <javi.merino@arm.com>
---
 drivers/irqchip/irq-gic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Rob Herring Feb. 19, 2013, 1:57 p.m. UTC | #1
On 02/19/2013 07:52 AM, Javi Merino wrote:
> In b1cffebf (ARM: GIC: remove direct use of gic_raise_softirq)
> gic_raise_softirq() was moved inside arch/arm/common/gic.c but in the
> process it reverted by mistake a change to that function made by
> 384a290 (ARM: gic: use a private mapping for CPU target interfaces).
> This breaks multicluster systems on ARM.
> 
> This patch fixes the typo.
> 
> Cc: Olof Johansson <olof@lixom.net>
> Cc: Rob Herring <rob.herring@calxeda.com>
> Signed-off-by: Javi Merino <javi.merino@arm.com>

I wouldn't really call this a typo, but a rebasing error. Not really
important though, so:

Acked-by: Rob Herring <rob.herring@calxeda.com>

> ---
>  drivers/irqchip/irq-gic.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c
> index 644d724..a32e0d5 100644
> --- a/drivers/irqchip/irq-gic.c
> +++ b/drivers/irqchip/irq-gic.c
> @@ -648,7 +648,7 @@ void gic_raise_softirq(const struct cpumask *mask, unsigned int irq)
>  
>  	/* Convert our logical CPU mask into a physical one. */
>  	for_each_cpu(cpu, mask)
> -		map |= 1 << cpu_logical_map(cpu);
> +		map |= gic_cpu_map[cpu];
>  
>  	/*
>  	 * Ensure that stores to Normal memory are visible to the
>
Olof Johansson Feb. 26, 2013, 7:05 a.m. UTC | #2
On Tue, Feb 19, 2013 at 07:57:36AM -0600, Rob Herring wrote:
> On 02/19/2013 07:52 AM, Javi Merino wrote:
> > In b1cffebf (ARM: GIC: remove direct use of gic_raise_softirq)
> > gic_raise_softirq() was moved inside arch/arm/common/gic.c but in the
> > process it reverted by mistake a change to that function made by
> > 384a290 (ARM: gic: use a private mapping for CPU target interfaces).
> > This breaks multicluster systems on ARM.
> > 
> > This patch fixes the typo.
> > 
> > Cc: Olof Johansson <olof@lixom.net>
> > Cc: Rob Herring <rob.herring@calxeda.com>
> > Signed-off-by: Javi Merino <javi.merino@arm.com>
> 
> I wouldn't really call this a typo, but a rebasing error. Not really
> important though, so:
> 
> Acked-by: Rob Herring <rob.herring@calxeda.com>

Applied.


-Olof
diff mbox

Patch

diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c
index 644d724..a32e0d5 100644
--- a/drivers/irqchip/irq-gic.c
+++ b/drivers/irqchip/irq-gic.c
@@ -648,7 +648,7 @@  void gic_raise_softirq(const struct cpumask *mask, unsigned int irq)
 
 	/* Convert our logical CPU mask into a physical one. */
 	for_each_cpu(cpu, mask)
-		map |= 1 << cpu_logical_map(cpu);
+		map |= gic_cpu_map[cpu];
 
 	/*
 	 * Ensure that stores to Normal memory are visible to the