[linux-yocto] [PATCH 006/161] arm/mach-axxia: Fix irq_set_type() in arch/arm/mach-axxia/axxia-gic.c
Cristian Bercaru
cristian.bercaru at windriver.com
Thu May 21 12:19:48 PDT 2015
From: David Mercado <david.mercado at windriver.com>
Fix error in gic_set_type(). Previously calculating cpu to send to with (i / 4), where i is a cluster number
between 0 and 3. Dividing by 4 (4 cores per cluster) is wrong, as this result will always be 0. Instead,
replace with (i *4), so result is 0, 4, 8, or 12 (first cpu of each cluster).
Signed-off-by: David Mercado <david.mercado at windriver.com>
---
arch/arm/mach-axxia/axxia-gic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-axxia/axxia-gic.c b/arch/arm/mach-axxia/axxia-gic.c
index 2c2dfba..c074f6c 100644
--- a/arch/arm/mach-axxia/axxia-gic.c
+++ b/arch/arm/mach-axxia/axxia-gic.c
@@ -344,7 +344,7 @@ static int gic_set_type(struct irq_data *d, unsigned int type)
* smp_call_function_single().
*/
local_irq_enable();
- smp_call_function_single((i/4),
+ smp_call_function_single((i * 4),
gic_set_type_wrapper, &data, 1);
local_irq_disable();
if (data.status != 0)
--
1.7.9.5
More information about the linux-yocto
mailing list