Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] irq-flags: M68K: Use the new IRQF_ constants

Use the new IRQF_ constants and remove the SA_INTERRUPT define

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Thomas Gleixner and committed by
Linus Torvalds
b0b9fdc1 f6f23887

+9 -10
+1 -1
arch/m68k/amiga/amiints.c
··· 22 22 * 23 23 * 07/08/99: rewamp of the interrupt handling - we now have two types of 24 24 * interrupts, normal and fast handlers, fast handlers being 25 - * marked with SA_INTERRUPT and runs with all other interrupts 25 + * marked with IRQF_DISABLED and runs with all other interrupts 26 26 * disabled. Normal interrupts disable their own source but 27 27 * run with all other interrupt sources enabled. 28 28 * PORTS and EXTER interrupts are always shared even if the
+1 -1
arch/m68k/amiga/cia.c
··· 176 176 /* override auto int and install CIA handler */ 177 177 m68k_setup_irq_controller(&auto_irq_controller, base->handler_irq, 1); 178 178 m68k_irq_startup(base->handler_irq); 179 - request_irq(base->handler_irq, cia_handler, SA_SHIRQ, base->name, base); 179 + request_irq(base->handler_irq, cia_handler, IRQF_SHARED, base->name, base); 180 180 }
+1 -1
arch/m68k/kernel/ints.c
··· 192 192 prev = irq_list + irq; 193 193 if (*prev) { 194 194 /* Can't share interrupts unless both agree to */ 195 - if (!((*prev)->flags & node->flags & SA_SHIRQ)) { 195 + if (!((*prev)->flags & node->flags & IRQF_SHARED)) { 196 196 spin_unlock_irqrestore(&contr->lock, flags); 197 197 return -EBUSY; 198 198 }
+2 -2
include/asm-m68k/floppy.h
··· 88 88 static int fd_request_irq(void) 89 89 { 90 90 if(MACH_IS_Q40) 91 - return request_irq(FLOPPY_IRQ, floppy_hardint,SA_INTERRUPT, 92 - "floppy", floppy_hardint); 91 + return request_irq(FLOPPY_IRQ, floppy_hardint, 92 + IRQF_DISABLED, "floppy", floppy_hardint); 93 93 else if(MACH_IS_SUN3X) 94 94 return sun3xflop_request_irq(); 95 95 return -ENXIO;
+2 -2
include/asm-m68k/irq.h
··· 67 67 68 68 /* 69 69 * various flags for request_irq() - the Amiga now uses the standard 70 - * mechanism like all other architectures - SA_INTERRUPT and SA_SHIRQ 71 - * are your friends. 70 + * mechanism like all other architectures - IRQF_DISABLED and 71 + * IRQF_SHARED are your friends. 72 72 */ 73 73 #ifndef MACH_AMIGA_ONLY 74 74 #define IRQ_FLG_LOCK (0x0001) /* handler is not replaceable */
-2
include/asm-m68k/signal.h
··· 74 74 * SA_FLAGS values: 75 75 * 76 76 * SA_ONSTACK indicates that a registered stack_t will be used. 77 - * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the 78 77 * SA_RESTART flag to get restarting signals (which were the default long ago) 79 78 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. 80 79 * SA_RESETHAND clears the handler when the signal is delivered. ··· 93 94 94 95 #define SA_NOMASK SA_NODEFER 95 96 #define SA_ONESHOT SA_RESETHAND 96 - #define SA_INTERRUPT 0x20000000 /* dummy -- ignored */ 97 97 98 98 /* 99 99 * sigaltstack controls
+2 -1
include/asm-m68k/sun3xflop.h
··· 208 208 209 209 if(!once) { 210 210 once = 1; 211 - error = request_irq(FLOPPY_IRQ, sun3xflop_hardint, SA_INTERRUPT, "floppy", NULL); 211 + error = request_irq(FLOPPY_IRQ, sun3xflop_hardint, 212 + IRQF_DISABLED, "floppy", NULL); 212 213 return ((error == 0) ? 0 : -1); 213 214 } else return 0; 214 215 }