diff options
author | David Howells <dhowells@redhat.com> | 2006-09-26 02:32:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-26 11:48:53 -0400 |
commit | 88d6e19900366781739df033e9c0e2532e715fa5 (patch) | |
tree | 97c6d48f0d707002c8239efb6e865a0133d69b68 /arch/frv/kernel/irq.c | |
parent | 1bcbba306048ed86b935d57a95d887c23d52c94b (diff) |
[PATCH] FRV: improve FRV's use of generic IRQ handling
Improve FRV's use of generic IRQ handling:
(*) Use generic_handle_irq() rather than __do_IRQ() as the latter is obsolete.
(*) Don't implement enable() and disable() ops as these will fall back to
using unmask() and mask().
(*) Provide mask_ack() functions to avoid a call each to mask() and ack().
(*) Make the cascade handlers always return IRQ_HANDLED.
(*) Implement the mask() and unmask() functions in the same order as they're
listed in the ops table.
Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/frv/kernel/irq.c')
-rw-r--r-- | arch/frv/kernel/irq.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/frv/kernel/irq.c b/arch/frv/kernel/irq.c index e1ab9f2e43fb..5ac041c7c0a4 100644 --- a/arch/frv/kernel/irq.c +++ b/arch/frv/kernel/irq.c | |||
@@ -97,19 +97,8 @@ int show_interrupts(struct seq_file *p, void *v) | |||
97 | /* | 97 | /* |
98 | * on-CPU PIC operations | 98 | * on-CPU PIC operations |
99 | */ | 99 | */ |
100 | static void frv_cpupic_enable(unsigned int irqlevel) | ||
101 | { | ||
102 | __clr_MASK(irqlevel); | ||
103 | } | ||
104 | |||
105 | static void frv_cpupic_disable(unsigned int irqlevel) | ||
106 | { | ||
107 | __set_MASK(irqlevel); | ||
108 | } | ||
109 | |||
110 | static void frv_cpupic_ack(unsigned int irqlevel) | 100 | static void frv_cpupic_ack(unsigned int irqlevel) |
111 | { | 101 | { |
112 | __set_MASK(irqlevel); | ||
113 | __clr_RC(irqlevel); | 102 | __clr_RC(irqlevel); |
114 | __clr_IRL(); | 103 | __clr_IRL(); |
115 | } | 104 | } |
@@ -138,8 +127,6 @@ static void frv_cpupic_end(unsigned int irqlevel) | |||
138 | 127 | ||
139 | static struct irq_chip frv_cpu_pic = { | 128 | static struct irq_chip frv_cpu_pic = { |
140 | .name = "cpu", | 129 | .name = "cpu", |
141 | .enable = frv_cpupic_enable, | ||
142 | .disable = frv_cpupic_disable, | ||
143 | .ack = frv_cpupic_ack, | 130 | .ack = frv_cpupic_ack, |
144 | .mask = frv_cpupic_mask, | 131 | .mask = frv_cpupic_mask, |
145 | .mask_ack = frv_cpupic_mask_ack, | 132 | .mask_ack = frv_cpupic_mask_ack, |
@@ -156,7 +143,7 @@ static struct irq_chip frv_cpu_pic = { | |||
156 | asmlinkage void do_IRQ(void) | 143 | asmlinkage void do_IRQ(void) |
157 | { | 144 | { |
158 | irq_enter(); | 145 | irq_enter(); |
159 | __do_IRQ(__get_IRL(), __frame); | 146 | generic_handle_irq(__get_IRL(), __frame); |
160 | irq_exit(); | 147 | irq_exit(); |
161 | } | 148 | } |
162 | 149 | ||