diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2006-07-03 05:32:51 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-07-03 05:55:12 -0400 |
commit | b9e5b4e6a991a5a6d521f2e20a65835404b4169f (patch) | |
tree | a0ac972faae4bf9133f576d842667bb134190341 /include/asm-powerpc/irq.h | |
parent | 5a43a066b11ac2fe84cf67307f20b83bea390f83 (diff) |
[POWERPC] Use the genirq framework
This adapts the generic powerpc interrupt handling code, and all of
the platforms except for the embedded 6xx machines, to use the new
genirq framework.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/irq.h')
-rw-r--r-- | include/asm-powerpc/irq.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-powerpc/irq.h b/include/asm-powerpc/irq.h index eb5f33e1977a..13fa2ef38dc7 100644 --- a/include/asm-powerpc/irq.h +++ b/include/asm-powerpc/irq.h | |||
@@ -514,9 +514,12 @@ extern u64 ppc64_interrupt_controller; | |||
514 | 514 | ||
515 | #endif | 515 | #endif |
516 | 516 | ||
517 | #ifndef CONFIG_PPC_MERGE | ||
517 | #define NR_MASK_WORDS ((NR_IRQS + 31) / 32) | 518 | #define NR_MASK_WORDS ((NR_IRQS + 31) / 32) |
518 | /* pedantic: these are long because they are used with set_bit --RR */ | 519 | /* pedantic: these are long because they are used with set_bit --RR */ |
519 | extern unsigned long ppc_cached_irq_mask[NR_MASK_WORDS]; | 520 | extern unsigned long ppc_cached_irq_mask[NR_MASK_WORDS]; |
521 | #endif | ||
522 | |||
520 | extern atomic_t ppc_n_lost_interrupts; | 523 | extern atomic_t ppc_n_lost_interrupts; |
521 | 524 | ||
522 | #define virt_irq_create_mapping(x) (x) | 525 | #define virt_irq_create_mapping(x) (x) |
@@ -579,9 +582,8 @@ extern struct thread_info *softirq_ctx[NR_CPUS]; | |||
579 | 582 | ||
580 | extern void irq_ctx_init(void); | 583 | extern void irq_ctx_init(void); |
581 | extern void call_do_softirq(struct thread_info *tp); | 584 | extern void call_do_softirq(struct thread_info *tp); |
582 | extern int call___do_IRQ(int irq, struct pt_regs *regs, | 585 | extern int call_handle_irq(int irq, void *p1, void *p2, |
583 | struct thread_info *tp); | 586 | struct thread_info *tp, void *func); |
584 | |||
585 | #else | 587 | #else |
586 | #define irq_ctx_init() | 588 | #define irq_ctx_init() |
587 | 589 | ||