[PATCH] genirq:fixup missing SA_PERCPU replacement
[firefly-linux-kernel-4.4.55.git] / kernel / irq / manage.c
index fede5fa351dfce046dca0f28113c937854c2ba5d..c911c6ec4dd62dc6457e0e99adbbb241982b8712 100644 (file)
@@ -234,7 +234,7 @@ int setup_irq(unsigned int irq, struct irqaction *new)
                    ((old->flags ^ new->flags) & IRQF_TRIGGER_MASK))
                        goto mismatch;
 
-#if defined(CONFIG_IRQ_PER_CPU) && defined(IRQF_PERCPU)
+#if defined(CONFIG_IRQ_PER_CPU)
                /* All handlers must agree on per-cpuness */
                if ((old->flags & IRQF_PERCPU) !=
                    (new->flags & IRQF_PERCPU))
@@ -250,7 +250,7 @@ int setup_irq(unsigned int irq, struct irqaction *new)
        }
 
        *p = new;
-#if defined(CONFIG_IRQ_PER_CPU) && defined(IRQF_PERCPU)
+#if defined(CONFIG_IRQ_PER_CPU)
        if (new->flags & IRQF_PERCPU)
                desc->status |= IRQ_PER_CPU;
 #endif