]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip: armada-370-xp: Introduce a is_percpu_irq() helper for readability
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 3 Mar 2015 10:43:15 +0000 (11:43 +0100)
committerJason Cooper <jason@lakedaemon.net>
Sun, 8 Mar 2015 05:21:45 +0000 (05:21 +0000)
commit7cf99b0d2702509df310e407764951d910d79fad
tree22f2fab806221ed637171b889e466f9e4b78612e
parentf15ab92b6880244f23d78a3dbe6310d3324425c9
irqchip: armada-370-xp: Introduce a is_percpu_irq() helper for readability

This commit introduces a helper function is_percpu_irq(), to be used
when interrupts are mapped to decide which ones are set as per CPU.

This change will allow to extend the list of per cpu interrupts in a less
intrusive fashion; also, it makes the code slightly more readable by keeping
a list of the per CPU interrupts.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Link: https://lkml.kernel.org/r/1425379400-4346-3-git-send-email-maxime.ripard@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
drivers/irqchip/irq-armada-370-xp.c