aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/sysdev/mpic.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-06-01 15:06:21 -0400
committerIngo Molnar <mingo@elte.hu>2009-06-01 15:06:21 -0400
commit3d58f48ba05caed9118bce62b3047f8683438835 (patch)
tree94c911034f0e14ded73d3e9e6e9f8e22b6cad822 /arch/powerpc/sysdev/mpic.c
parentabfe0af9813153bae8c85d9bac966bafcb8ddab1 (diff)
parentd9244b5d2fbfe9fa540024b410047af13ceec90f (diff)
Merge branch 'linus' into irq/numa
Conflicts: arch/mips/sibyte/bcm1480/irq.c arch/mips/sibyte/sb1250/irq.c Merge reason: we gathered a few conflicts plus update to latest upstream fixes. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/powerpc/sysdev/mpic.c')
-rw-r--r--arch/powerpc/sysdev/mpic.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c
index f4cbd15cf22f..352d8c3ef526 100644
--- a/arch/powerpc/sysdev/mpic.c
+++ b/arch/powerpc/sysdev/mpic.c
@@ -1059,13 +1059,6 @@ struct mpic * __init mpic_alloc(struct device_node *node,
1059 memset(mpic, 0, sizeof(struct mpic)); 1059 memset(mpic, 0, sizeof(struct mpic));
1060 mpic->name = name; 1060 mpic->name = name;
1061 1061
1062 mpic->irqhost = irq_alloc_host(node, IRQ_HOST_MAP_LINEAR,
1063 isu_size, &mpic_host_ops,
1064 flags & MPIC_LARGE_VECTORS ? 2048 : 256);
1065 if (mpic->irqhost == NULL)
1066 return NULL;
1067
1068 mpic->irqhost->host_data = mpic;
1069 mpic->hc_irq = mpic_irq_chip; 1062 mpic->hc_irq = mpic_irq_chip;
1070 mpic->hc_irq.typename = name; 1063 mpic->hc_irq.typename = name;
1071 if (flags & MPIC_PRIMARY) 1064 if (flags & MPIC_PRIMARY)
@@ -1215,6 +1208,15 @@ struct mpic * __init mpic_alloc(struct device_node *node,
1215 mpic->isu_shift = 1 + __ilog2(mpic->isu_size - 1); 1208 mpic->isu_shift = 1 + __ilog2(mpic->isu_size - 1);
1216 mpic->isu_mask = (1 << mpic->isu_shift) - 1; 1209 mpic->isu_mask = (1 << mpic->isu_shift) - 1;
1217 1210
1211 mpic->irqhost = irq_alloc_host(node, IRQ_HOST_MAP_LINEAR,
1212 isu_size ? isu_size : mpic->num_sources,
1213 &mpic_host_ops,
1214 flags & MPIC_LARGE_VECTORS ? 2048 : 256);
1215 if (mpic->irqhost == NULL)
1216 return NULL;
1217
1218 mpic->irqhost->host_data = mpic;
1219
1218 /* Display version */ 1220 /* Display version */
1219 switch (greg_feature & MPIC_GREG_FEATURE_VERSION_MASK) { 1221 switch (greg_feature & MPIC_GREG_FEATURE_VERSION_MASK) {
1220 case 1: 1222 case 1: