diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-02-19 16:00:29 +0100 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2016-02-19 16:42:29 +0100 |
commit | 0407daceedfed003eaacb850d06cbbe359348367 (patch) | |
tree | c47fc329b56a23ce8d329c53357016359bc1e550 /drivers/irqchip/irq-gic.c | |
parent | irqchip/mvebu-odmi: Add new driver for platform MSI on Marvell 7K/8K (diff) | |
download | linux-0407daceedfed003eaacb850d06cbbe359348367.tar.xz linux-0407daceedfed003eaacb850d06cbbe359348367.zip |
irqchip/gic: Return IRQ_SET_MASK_OK_DONE in the set_affinity method
Moving an SPI around doesn't require any extra work from the rest
of the stack, and specially not for MSI-generated SPIs.
It is then worth returning IRQ_SET_MASK_OK_DONE instead of
IRQ_SET_MASK_OK, and simplify the other irqchips that rely on
this behaviour (GICv2m and Marvell's ODMI controller).
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Link: https://lkml.kernel.org/r/1455894029-17270-1-git-send-email-marc.zyngier@arm.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'drivers/irqchip/irq-gic.c')
-rw-r--r-- | drivers/irqchip/irq-gic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 911758c056c1..e14f2f2a7263 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -319,7 +319,7 @@ static int gic_set_affinity(struct irq_data *d, const struct cpumask *mask_val, writel_relaxed(val | bit, reg); raw_spin_unlock_irqrestore(&irq_controller_lock, flags); - return IRQ_SET_MASK_OK; + return IRQ_SET_MASK_OK_DONE; } #endif |