diff options
author | Franck Bui-Huu <fbuihuu@gmail.com> | 2006-12-01 12:22:27 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-12-06 15:16:08 -0500 |
commit | e77c232cfc6e1250b2916a7c69225d6634d05a49 (patch) | |
tree | a5a193c3d6d7f8c8a9eb35d970dd47fa867e5e24 /arch/mips/lasat/interrupt.c | |
parent | 1ccd1c1c35a6cb21da32479931d4fa6d47320095 (diff) |
[MIPS] Compile __do_IRQ() when really needed
__do_IRQ() is needed only by irq handlers that can't use
default handlers defined in kernel/irq/chip.c.
For others platforms there's no need to compile this function
since it won't be used. For those platforms this patch defines
GENERIC_HARDIRQS_NO__DO_IRQ symbol which is used exactly for
this purpose.
Futhermore for platforms which do not use __do_IRQ(), end()
method which is part of the 'irq_chip' structure is not used.
This patch simply removes this method in this case.
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/lasat/interrupt.c')
-rw-r--r-- | arch/mips/lasat/interrupt.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/mips/lasat/interrupt.c b/arch/mips/lasat/interrupt.c index 4a84a7beac53..2affa5ff171c 100644 --- a/arch/mips/lasat/interrupt.c +++ b/arch/mips/lasat/interrupt.c | |||
@@ -44,19 +44,12 @@ void enable_lasat_irq(unsigned int irq_nr) | |||
44 | *lasat_int_mask |= (1 << irq_nr) << lasat_int_mask_shift; | 44 | *lasat_int_mask |= (1 << irq_nr) << lasat_int_mask_shift; |
45 | } | 45 | } |
46 | 46 | ||
47 | static void end_lasat_irq(unsigned int irq) | ||
48 | { | ||
49 | if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS))) | ||
50 | enable_lasat_irq(irq); | ||
51 | } | ||
52 | |||
53 | static struct irq_chip lasat_irq_type = { | 47 | static struct irq_chip lasat_irq_type = { |
54 | .typename = "Lasat", | 48 | .typename = "Lasat", |
55 | .ack = disable_lasat_irq, | 49 | .ack = disable_lasat_irq, |
56 | .mask = disable_lasat_irq, | 50 | .mask = disable_lasat_irq, |
57 | .mask_ack = disable_lasat_irq, | 51 | .mask_ack = disable_lasat_irq, |
58 | .unmask = enable_lasat_irq, | 52 | .unmask = enable_lasat_irq, |
59 | .end = end_lasat_irq, | ||
60 | }; | 53 | }; |
61 | 54 | ||
62 | static inline int ls1bit32(unsigned int x) | 55 | static inline int ls1bit32(unsigned int x) |