From 57b1dfbd5b4a39db574b45285cc34bbfc1504a36 Mon Sep 17 00:00:00 2001 From: Matthew Wilcox Date: Sun, 3 Nov 2002 00:21:37 -0800 Subject: [PATCH] PA-RISC updates Some misc updates: - adapt our config.in changes to arch/parisc/Kconfig - general Makefile updaes for the new build system - remove asm-parisc/gsc.h in favour of asm-parisc/io.h - Alan-approved fix for the loff_t problem - Define POLLREMOVE like other architectures. - irq handling updates from Grant Grundler --- arch/parisc/kernel/processor.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'arch/parisc/kernel/processor.c') diff --git a/arch/parisc/kernel/processor.c b/arch/parisc/kernel/processor.c index 254a08252665..187041ac52ca 100644 --- a/arch/parisc/kernel/processor.c +++ b/arch/parisc/kernel/processor.c @@ -167,12 +167,24 @@ static int __init processor_probe(struct parisc_device *dev) ** p->state = STATE_RENDEZVOUS; */ - /* - ** itimer and ipi IRQ handlers are statically initialized in - ** arch/parisc/kernel/irq.c. ie Don't need to register them. - */ - p->region = irq_region[IRQ_FROM_REGION(CPU_IRQ_REGION)]; +#if 0 + /* CPU 0 IRQ table is statically allocated/initialized */ + if (cpuid) { + struct irqaction actions[]; + + /* + ** itimer and ipi IRQ handlers are statically initialized in + ** arch/parisc/kernel/irq.c. ie Don't need to register them. + */ + actions = kmalloc(sizeof(struct irqaction)*MAX_CPU_IRQ, GFP_ATOMIC); + if (!actions) { + /* not getting it's own table, share with monarch */ + actions = cpu_irq_actions[0]; + } + cpu_irq_actions[cpuid] = actions; + } +#endif return 0; } -- cgit v1.2.3