]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip: mips-gic: Let the core set struct irq_common_data affinity
authorPaul Burton <paul.burton@imgtec.com>
Sun, 13 Aug 2017 04:36:46 +0000 (21:36 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 4 Sep 2017 11:53:15 +0000 (13:53 +0200)
commit9a0b9981ec2662b3b5ee6775c78a92f9509b0399
treea162655ccaaf1c6c70a848870e4943d199e62d5e
parent6e04b7f198df6d24db0ad170b78b2452a2881e7d
irqchip: mips-gic: Let the core set struct irq_common_data affinity

gic_set_affinity() manually copies the provided cpumask to the struct
irq_common_data affinity field, returning IRQ_SET_MASK_OK_NOCOPY in
order to prevent the core code from doing that.

We can instead simply let the core code do it for us, by returning
IRQ_SET_MASK_OK instead of IRQ_SET_MASK_OK_NOCOPY & doing the copy
ourselves.

[ralf@linux-mips.org: Resolve merge conflict.]

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17056/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/irqchip/irq-mips-gic.c