diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-09-11 05:54:50 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-11-08 16:35:52 -0500 |
commit | f30a6484f1bcb410d0af0c24f34b8e3d92682a05 (patch) | |
tree | 18c01955ef5260d5f4b0412961e68dd1c7a4938f /arch/m68k/kernel/ints.c | |
parent | d890d73995257b4e10cdd7d55bad80e34a71ba22 (diff) |
m68k/irq: Remove obsolete support for user vector interrupt fixups
It was used on Apollo only, before its conversion to genirq.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/kernel/ints.c')
-rw-r--r-- | arch/m68k/kernel/ints.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/m68k/kernel/ints.c b/arch/m68k/kernel/ints.c index e2b056b3a314..74fefac00899 100644 --- a/arch/m68k/kernel/ints.c +++ b/arch/m68k/kernel/ints.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | extern u32 auto_irqhandler_fixup[]; | 30 | extern u32 auto_irqhandler_fixup[]; |
31 | extern u32 user_irqhandler_fixup[]; | ||
32 | extern u16 user_irqvec_fixup[]; | 31 | extern u16 user_irqvec_fixup[]; |
33 | 32 | ||
34 | static int m68k_first_user_vec; | 33 | static int m68k_first_user_vec; |
@@ -91,16 +90,12 @@ void __init m68k_setup_auto_interrupt(void (*handler)(unsigned int, struct pt_re | |||
91 | * m68k_setup_user_interrupt | 90 | * m68k_setup_user_interrupt |
92 | * @vec: first user vector interrupt to handle | 91 | * @vec: first user vector interrupt to handle |
93 | * @cnt: number of active user vector interrupts | 92 | * @cnt: number of active user vector interrupts |
94 | * @handler: called from user vector interrupts | ||
95 | * | 93 | * |
96 | * setup user vector interrupts, this includes activating the specified range | 94 | * setup user vector interrupts, this includes activating the specified range |
97 | * of interrupts, only then these interrupts can be requested (note: this is | 95 | * of interrupts, only then these interrupts can be requested (note: this is |
98 | * different from auto vector interrupts). An optional handler can be installed | 96 | * different from auto vector interrupts). |
99 | * to be called instead of the default do_IRQ(), it will be called | ||
100 | * with irq numbers starting from IRQ_USER. | ||
101 | */ | 97 | */ |
102 | void __init m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt, | 98 | void __init m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt) |
103 | void (*handler)(unsigned int, struct pt_regs *)) | ||
104 | { | 99 | { |
105 | int i; | 100 | int i; |
106 | 101 | ||
@@ -109,8 +104,6 @@ void __init m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt, | |||
109 | for (i = 0; i < cnt; i++) | 104 | for (i = 0; i < cnt; i++) |
110 | irq_set_chip(IRQ_USER + i, &user_irq_chip); | 105 | irq_set_chip(IRQ_USER + i, &user_irq_chip); |
111 | *user_irqvec_fixup = vec - IRQ_USER; | 106 | *user_irqvec_fixup = vec - IRQ_USER; |
112 | if (handler) | ||
113 | *user_irqhandler_fixup = (u32)handler; | ||
114 | flush_icache(); | 107 | flush_icache(); |
115 | } | 108 | } |
116 | 109 | ||