Revert "irqchip: Gic: Support forced affinity setting"
authorMark Brown <broonie@linaro.org>
Mon, 23 Jun 2014 10:18:59 +0000 (11:18 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 23 Jun 2014 10:58:14 +0000 (11:58 +0100)
This reverts commit 2e020bb03a2db393dc7def211a5e62440db7d0b8 since it
breaks CPU0 hotplug on ARM.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/irqchip/irq-gic.c

index 4e11218d644ecfb1e2551d4d81c327f0f64d8b06..19ceaa60e0f45c755fd67d840e8ee90de320d1ca 100644 (file)
@@ -246,14 +246,10 @@ static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val,
                            bool force)
 {
        void __iomem *reg = gic_dist_base(d) + GIC_DIST_TARGET + (gic_irq(d) & ~3);
-       unsigned int cpu, shift = (gic_irq(d) % 4) * 8;
+       unsigned int shift = (gic_irq(d) % 4) * 8;
+       unsigned int cpu = cpumask_any_and(mask_val, cpu_online_mask);
        u32 val, mask, bit;
 
-       if (!force)
-               cpu = cpumask_any_and(mask_val, cpu_online_mask);
-       else
-               cpu = cpumask_first(mask_val);
-
        if (cpu >= NR_GIC_CPU_IF || cpu >= nr_cpu_ids)
                return -EINVAL;