]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ARCv2: MCIP: Deprecate setting of affinity in Device Tree
authorYuriy Kolerov <yuriy.kolerov@synopsys.com>
Wed, 28 Dec 2016 08:46:26 +0000 (11:46 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Tue, 24 Jan 2017 18:22:48 +0000 (10:22 -0800)
commit92fdb527eecff7e5eb945a3fbf4743110f5c1171
tree7e6da47976e7eb6546d0085e75c491276589589e
parent7a308bb3016f57e5be11a677d15b821536419d36
ARCv2: MCIP: Deprecate setting of affinity in Device Tree

Ignore value of interrupt distribution mode for common interrupts in
IDU since setting of affinity using value from Device Tree is deprecated
in ARC. Originally it is done in idu_irq_xlate() function and it is
semantically wrong and does not guaranty that an affinity value will be
set properly. idu_irq_enable() function is better place for
initialization of common interrupts.

By default send all common interrupts to all available online CPUs.
The affinity of common interrupts in IDU must be set manually since
in some cases the kernel will not call irq_set_affinity() by itself:

  1. When the kernel is not configured with support of SMP.
  2. When the kernel is configured with support of SMP but upper
     interrupt controllers does not support setting of the affinity
     and cannot propagate it to IDU.

Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Documentation/devicetree/bindings/interrupt-controller/snps,archs-idu-intc.txt
arch/arc/kernel/mcip.c