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)
commit2c299de527ca2f39d231a257c00d09c498bb8447
tree22f2fab806221ed637171b889e466f9e4b78612e
parent933a24b06b42617ef9fffece1857c5c4b23329aa
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