summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/xics/xics-common.c
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2011-05-10 21:30:36 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-05-19 07:31:59 +0200
commit3ee62d365b519c0c18c774049efcde84fe51c60c (patch)
tree7229d970675b0c5dff165d8597707ebc6e5798cc /arch/powerpc/sysdev/xics/xics-common.c
parentpowerpc/axon_msi: Validate msi irq via chip_data (diff)
downloadlinux-3ee62d365b519c0c18c774049efcde84fe51c60c.tar.xz
linux-3ee62d365b519c0c18c774049efcde84fe51c60c.zip
powerpc: Add virq_is_host to reduce virq_to_host usage
Some irq_host implementations are using virq_to_host to check if they are the irq_host for a virtual irq. To allow us to make space versus time tradeoffs, replace this usage with an assertive virq_is_host that confirms or denies the irq is associated with the given irq_host. Signed-off-by: Milton Miller <miltonm@bga.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/sysdev/xics/xics-common.c')
-rw-r--r--arch/powerpc/sysdev/xics/xics-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/xics/xics-common.c b/arch/powerpc/sysdev/xics/xics-common.c
index 43b2a791e204..445c5a01b766 100644
--- a/arch/powerpc/sysdev/xics/xics-common.c
+++ b/arch/powerpc/sysdev/xics/xics-common.c
@@ -213,7 +213,7 @@ void xics_migrate_irqs_away(void)
/* We can't set affinity on ISA interrupts */
if (virq < NUM_ISA_INTERRUPTS)
continue;
- if (virq_to_host(virq) != xics_host)
+ if (!virq_is_host(virq, xics_host))
continue;
irq = (unsigned int)virq_to_hw(virq);
/* We need to get IPIs still. */