From: David Mercado <david.merc...@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.merc...@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.8.4.3

_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to