]> git.baikalelectronics.ru Git - kernel.git/commit
ARCv2: MCIP: Use IDU_M_DISTRI_DEST mode if there is only 1 destination core
authorYuriy Kolerov <yuriy.kolerov@synopsys.com>
Tue, 8 Nov 2016 07:08:32 +0000 (10:08 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Tue, 8 Nov 2016 20:22:52 +0000 (12:22 -0800)
commit83c2a6522aa0b99ede1b5d551582d2321877614a
tree92b2417272fcb6360e72f9904ba03d04fb5a8fb0
parentb294f54ea5f86ac915ff977a7f01937e63ea4ee1
ARCv2: MCIP: Use IDU_M_DISTRI_DEST mode if there is only 1 destination core

ARC linux uses 2 distribution modes for common interrupts: round robin
mode (IDU_M_DISTRI_RR) and a simple destination mode (IDU_M_DISTRI_DEST).
The first one is used when more than 1 cores may handle a common interrupt
and the second one is used when only 1 core may handle a common interrupt.

However idu_irq_set_affinity() always sets IDU_M_DISTRI_RR for all affinity
values. But there is no sense in setting of such mode if only 1 core must
handle a common interrupt.

Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/mcip.c