]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
irqchip/irq-csky-mpintc: Support auto irq deliver to all cpus
authorGuo Ren <ren_guo@c-sky.com>
Tue, 21 May 2019 07:54:05 +0000 (15:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Jul 2019 07:01:53 +0000 (09:01 +0200)
commit97b1f5aa15bde870943a87e394c5c2753b836dbc
treeb3838b4052af23e68473052eb4127b6c603e2d36
parentf71b47b37e29099fbf968a48dbbd1bfd99d42bec
irqchip/irq-csky-mpintc: Support auto irq deliver to all cpus

[ Upstream commit db56c5128e6625cb16efc4910b60627e46f608e3 ]

The csky,mpintc could deliver a external irq to one cpu or all cpus, but
it couldn't deliver a external irq to a group of cpus with cpu_mask. So
we only use auto deliver mode when affinity mask_val is equal to
cpu_present_mask.

There is no limitation for only two cpus in SMP system.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-csky-mpintc.c