aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2005-09-23 00:43:22 -0400
committerStephen Rothwell <sfr@canb.auug.org.au>2005-09-23 00:43:22 -0400
commitba293fff085fde5b9f1b5a57c8abb1a8098d0c59 (patch)
treea5fdbb59380facc566adcfc3c4a2dea947324473 /arch
parent9f497581fda5fd804e9ebd7d8f6d80c3a0e9f883 (diff)
ppc46 iSeries: Make some generic irq code compile for iSeries
In order to call finish_device_tree() on iSeries we need to define virt_irq_create_mapping(). We also need to set ppc64_interrupt_controller to something other than zero. If we want to do interrupt setup via the device tree on iSeries this code will need some serious work, but it's harmless to have it there as long as the nodes in the iSeries device tree don't cause it to be invoked. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch')
-rw-r--r--arch/ppc64/kernel/iSeries_irq.c13
-rw-r--r--arch/ppc64/kernel/iSeries_setup.c2
2 files changed, 15 insertions, 0 deletions
diff --git a/arch/ppc64/kernel/iSeries_irq.c b/arch/ppc64/kernel/iSeries_irq.c
index 77376c1bd611..0170682a8ca5 100644
--- a/arch/ppc64/kernel/iSeries_irq.c
+++ b/arch/ppc64/kernel/iSeries_irq.c
@@ -351,3 +351,16 @@ int __init iSeries_allocate_IRQ(HvBusNumber busNumber,
351 irq_desc[virtirq].handler = &iSeries_IRQ_handler; 351 irq_desc[virtirq].handler = &iSeries_IRQ_handler;
352 return virtirq; 352 return virtirq;
353} 353}
354
355int virt_irq_create_mapping(unsigned int real_irq)
356{
357 BUG(); /* Don't call this on iSeries, yet */
358
359 return 0;
360}
361
362void virt_irq_init(void)
363{
364 return;
365}
366
diff --git a/arch/ppc64/kernel/iSeries_setup.c b/arch/ppc64/kernel/iSeries_setup.c
index b5dcb08547bd..75d8db4eaac6 100644
--- a/arch/ppc64/kernel/iSeries_setup.c
+++ b/arch/ppc64/kernel/iSeries_setup.c
@@ -321,6 +321,8 @@ static void __init iSeries_init_early(void)
321 321
322 ppcdbg_initialize(); 322 ppcdbg_initialize();
323 323
324 ppc64_interrupt_controller = IC_ISERIES;
325
324#if defined(CONFIG_BLK_DEV_INITRD) 326#if defined(CONFIG_BLK_DEV_INITRD)
325 /* 327 /*
326 * If the init RAM disk has been configured and there is 328 * If the init RAM disk has been configured and there is