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

[PATCH] irq-flags: MIPS: 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: Ralf Baechle <ralf@linux-mips.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
f40298fd b0b9fdc1

+38 -49
+1 -1
arch/mips/au1000/common/dbdma.c
··· 892 892 #error Unknown Au1x00 SOC 893 893 #endif 894 894 895 - if (request_irq(irq_nr, dbdma_interrupt, SA_INTERRUPT, 895 + if (request_irq(irq_nr, dbdma_interrupt, IRQF_DISABLED, 896 896 "Au1xxx dbdma", (void *)dbdma_gptr)) 897 897 printk("Can't get 1550 dbdma irq"); 898 898 }
+1 -1
arch/mips/au1000/common/irq.c
··· 309 309 * can avoid it. --cgray 310 310 */ 311 311 action.dev_id = handler; 312 - action.flags = SA_INTERRUPT; 312 + action.flags = IRQF_DISABLED; 313 313 cpus_clear(action.mask); 314 314 action.name = "Au1xxx TOY"; 315 315 action.handler = handler;
+4 -4
arch/mips/au1000/common/usbdev.c
··· 1465 1465 */ 1466 1466 1467 1467 /* request the USB device transfer complete interrupt */ 1468 - if (request_irq(AU1000_USB_DEV_REQ_INT, req_sus_intr, SA_INTERRUPT, 1468 + if (request_irq(AU1000_USB_DEV_REQ_INT, req_sus_intr, IRQF_DISABLED, 1469 1469 "USBdev req", &usbdev)) { 1470 1470 err("Can't get device request intr"); 1471 1471 ret = -ENXIO; 1472 1472 goto out; 1473 1473 } 1474 1474 /* request the USB device suspend interrupt */ 1475 - if (request_irq(AU1000_USB_DEV_SUS_INT, req_sus_intr, SA_INTERRUPT, 1475 + if (request_irq(AU1000_USB_DEV_SUS_INT, req_sus_intr, IRQF_DISABLED, 1476 1476 "USBdev sus", &usbdev)) { 1477 1477 err("Can't get device suspend intr"); 1478 1478 ret = -ENXIO; ··· 1483 1483 if ((ep0->indma = request_au1000_dma(ep_dma_id[0].id, 1484 1484 ep_dma_id[0].str, 1485 1485 dma_done_ep0_intr, 1486 - SA_INTERRUPT, 1486 + IRQF_DISABLED, 1487 1487 &usbdev)) < 0) { 1488 1488 err("Can't get %s DMA", ep_dma_id[0].str); 1489 1489 ret = -ENXIO; ··· 1516 1516 request_au1000_dma(ep_dma_id[ep->address].id, 1517 1517 ep_dma_id[ep->address].str, 1518 1518 dma_done_ep_intr, 1519 - SA_INTERRUPT, 1519 + IRQF_DISABLED, 1520 1520 &usbdev); 1521 1521 if (ep->indma < 0) { 1522 1522 err("Can't get %s DMA",
+1 -1
arch/mips/basler/excite/excite_iodev.c
··· 113 113 114 114 static int iodev_open(struct inode *i, struct file *f) 115 115 { 116 - return request_irq(iodev_irq, iodev_irqhdl, SA_INTERRUPT, 116 + return request_irq(iodev_irq, iodev_irqhdl, IRQF_DISABLED, 117 117 iodev_name, &miscdev); 118 118 } 119 119
+2 -2
arch/mips/dec/setup.c
··· 105 105 }; 106 106 107 107 static struct irqaction busirq = { 108 - .flags = SA_INTERRUPT, 108 + .flags = IRQF_DISABLED, 109 109 .name = "bus error", 110 110 }; 111 111 ··· 124 124 case MACH_DS23100: /* DS2100/DS3100 Pmin/Pmax */ 125 125 board_be_handler = dec_kn01_be_handler; 126 126 busirq.handler = dec_kn01_be_interrupt; 127 - busirq.flags |= SA_SHIRQ; 127 + busirq.flags |= IRQF_SHARED; 128 128 dec_kn01_be_init(); 129 129 break; 130 130 case MACH_DS5000_1XX: /* DS5000/1xx 3min */
+1 -1
arch/mips/gt64120/common/time.c
··· 77 77 * the values to the correct interrupt line. 78 78 */ 79 79 timer.handler = gt64120_irq; 80 - timer.flags = SA_SHIRQ | SA_INTERRUPT; 80 + timer.flags = IRQF_SHARED | IRQF_DISABLED; 81 81 timer.name = "timer"; 82 82 timer.dev_id = NULL; 83 83 timer.next = NULL;
+1 -1
arch/mips/kernel/rtlx.c
··· 487 487 488 488 static struct irqaction rtlx_irq = { 489 489 .handler = rtlx_interrupt, 490 - .flags = SA_INTERRUPT, 490 + .flags = IRQF_DISABLED, 491 491 .name = "RTLX", 492 492 }; 493 493
+2 -2
arch/mips/kernel/smp-mt.c
··· 130 130 131 131 static struct irqaction irq_resched = { 132 132 .handler = ipi_resched_interrupt, 133 - .flags = SA_INTERRUPT, 133 + .flags = IRQF_DISABLED, 134 134 .name = "IPI_resched" 135 135 }; 136 136 137 137 static struct irqaction irq_call = { 138 138 .handler = ipi_call_interrupt, 139 - .flags = SA_INTERRUPT, 139 + .flags = IRQF_DISABLED, 140 140 .name = "IPI_call" 141 141 }; 142 142
+1 -1
arch/mips/kernel/smtc.c
··· 1002 1002 set_vi_handler(MIPS_CPU_IPI_IRQ, ipi_irq_dispatch); 1003 1003 1004 1004 irq_ipi.handler = ipi_interrupt; 1005 - irq_ipi.flags = SA_INTERRUPT; 1005 + irq_ipi.flags = IRQF_DISABLED; 1006 1006 irq_ipi.name = "SMTC_IPI"; 1007 1007 1008 1008 setup_irq_smtc(cpu_ipi_irq, &irq_ipi, (0x100 << MIPS_CPU_IPI_IRQ));
+1 -1
arch/mips/kernel/time.c
··· 579 579 580 580 static struct irqaction timer_irqaction = { 581 581 .handler = timer_interrupt, 582 - .flags = SA_INTERRUPT, 582 + .flags = IRQF_DISABLED, 583 583 .name = "timer", 584 584 }; 585 585
+1 -1
arch/mips/momentum/jaguar_atx/irq.c
··· 71 71 } 72 72 73 73 static struct irqaction cascade_mv64340 = { 74 - no_action, SA_INTERRUPT, CPU_MASK_NONE, "MV64340-Cascade", NULL, NULL 74 + no_action, IRQF_DISABLED, CPU_MASK_NONE, "MV64340-Cascade", NULL, NULL 75 75 }; 76 76 77 77 void __init arch_init_irq(void)
+1 -1
arch/mips/momentum/ocelot_3/irq.c
··· 54 54 #include <asm/system.h> 55 55 56 56 static struct irqaction cascade_mv64340 = { 57 - no_action, SA_INTERRUPT, CPU_MASK_NONE, "MV64340-Cascade", NULL, NULL 57 + no_action, IRQF_DISABLED, CPU_MASK_NONE, "MV64340-Cascade", NULL, NULL 58 58 }; 59 59 60 60 void __init arch_init_irq(void)
+2 -2
arch/mips/momentum/ocelot_c/irq.c
··· 52 52 extern void cpci_irq_init(void); 53 53 54 54 static struct irqaction cascade_fpga = { 55 - no_action, SA_INTERRUPT, CPU_MASK_NONE, "cascade via FPGA", NULL, NULL 55 + no_action, IRQF_DISABLED, CPU_MASK_NONE, "cascade via FPGA", NULL, NULL 56 56 }; 57 57 58 58 static struct irqaction cascade_mv64340 = { 59 - no_action, SA_INTERRUPT, CPU_MASK_NONE, "cascade via MV64340", NULL, NULL 59 + no_action, IRQF_DISABLED, CPU_MASK_NONE, "cascade via MV64340", NULL, NULL 60 60 }; 61 61 62 62 extern void ll_uart_irq(struct pt_regs *regs);
+1 -1
arch/mips/momentum/ocelot_g/gt-irq.c
··· 173 173 * the values to the correct interrupt line. 174 174 */ 175 175 timer.handler = &gt64240_p0int_irq; 176 - timer.flags = SA_SHIRQ | SA_INTERRUPT; 176 + timer.flags = IRQF_SHARED | IRQF_DISABLED; 177 177 timer.name = "timer"; 178 178 timer.dev_id = NULL; 179 179 timer.next = NULL;
+2 -2
arch/mips/philips/pnx8550/common/int.c
··· 219 219 220 220 static struct irqaction gic_action = { 221 221 .handler = no_action, 222 - .flags = SA_INTERRUPT, 222 + .flags = IRQF_DISABLED, 223 223 .name = "GIC", 224 224 }; 225 225 226 226 static struct irqaction timer_action = { 227 227 .handler = no_action, 228 - .flags = SA_INTERRUPT, 228 + .flags = IRQF_DISABLED, 229 229 .name = "Timer", 230 230 }; 231 231
+5 -5
arch/mips/sgi-ip22/ip22-int.c
··· 272 272 273 273 static struct irqaction local0_cascade = { 274 274 .handler = no_action, 275 - .flags = SA_INTERRUPT, 275 + .flags = IRQF_DISABLED, 276 276 .name = "local0 cascade", 277 277 }; 278 278 279 279 static struct irqaction local1_cascade = { 280 280 .handler = no_action, 281 - .flags = SA_INTERRUPT, 281 + .flags = IRQF_DISABLED, 282 282 .name = "local1 cascade", 283 283 }; 284 284 285 285 static struct irqaction buserr = { 286 286 .handler = no_action, 287 - .flags = SA_INTERRUPT, 287 + .flags = IRQF_DISABLED, 288 288 .name = "Bus Error", 289 289 }; 290 290 291 291 static struct irqaction map0_cascade = { 292 292 .handler = no_action, 293 - .flags = SA_INTERRUPT, 293 + .flags = IRQF_DISABLED, 294 294 .name = "mapable0 cascade", 295 295 }; 296 296 297 297 #ifdef USE_LIO3_IRQ 298 298 static struct irqaction map1_cascade = { 299 299 .handler = no_action, 300 - .flags = SA_INTERRUPT, 300 + .flags = IRQF_DISABLED, 301 301 .name = "mapable1 cascade", 302 302 }; 303 303 #define SGI_INTERRUPTS SGINT_END
+1 -1
arch/mips/sgi-ip27/ip27-irq.c
··· 118 118 } 119 119 120 120 /* 121 - * This code is unnecessarily complex, because we do SA_INTERRUPT 121 + * This code is unnecessarily complex, because we do IRQF_DISABLED 122 122 * intr enabling. Basically, once we grab the set of intrs we need 123 123 * to service, we must mask _all_ these interrupts; firstly, to make 124 124 * sure the same intr does not intr again, causing recursion that
+1 -1
arch/mips/sgi-ip27/ip27-timer.c
··· 217 217 218 218 static struct irqaction rt_irqaction = { 219 219 .handler = ip27_rt_timer_interrupt, 220 - .flags = SA_INTERRUPT, 220 + .flags = IRQF_DISABLED, 221 221 .mask = CPU_MASK_NONE, 222 222 .name = "timer" 223 223 };
+6 -6
arch/mips/sgi-ip32/ip32-irq.c
··· 125 125 extern irqreturn_t crime_cpuerr_intr (int irq, void *dev_id, 126 126 struct pt_regs *regs); 127 127 128 - struct irqaction memerr_irq = { crime_memerr_intr, SA_INTERRUPT, 128 + struct irqaction memerr_irq = { crime_memerr_intr, IRQF_DISABLED, 129 129 CPU_MASK_NONE, "CRIME memory error", NULL, NULL }; 130 - struct irqaction cpuerr_irq = { crime_cpuerr_intr, SA_INTERRUPT, 130 + struct irqaction cpuerr_irq = { crime_cpuerr_intr, IRQF_DISABLED, 131 131 CPU_MASK_NONE, "CRIME CPU error", NULL, NULL }; 132 132 133 133 /* ··· 316 316 MACEISA_KEYB_POLL_INT | \ 317 317 MACEISA_MOUSE_INT | \ 318 318 MACEISA_MOUSE_POLL_INT | \ 319 - MACEISA_TIMER0_INT | \ 320 - MACEISA_TIMER1_INT | \ 321 - MACEISA_TIMER2_INT) 319 + MACEIIRQF_TIMER0_INT | \ 320 + MACEIIRQF_TIMER1_INT | \ 321 + MACEIIRQF_TIMER2_INT) 322 322 #define MACEISA_SUPERIO_INT (MACEISA_PARALLEL_INT | \ 323 323 MACEISA_PAR_CTXA_INT | \ 324 324 MACEISA_PAR_CTXB_INT | \ ··· 349 349 case MACEISA_AUDIO_SW_IRQ ... MACEISA_AUDIO3_MERR_IRQ: 350 350 crime_int = MACE_AUDIO_INT; 351 351 break; 352 - case MACEISA_RTC_IRQ ... MACEISA_TIMER2_IRQ: 352 + case MACEISA_RTC_IRQ ... MACEIIRQF_TIMER2_IRQ: 353 353 crime_int = MACE_MISC_INT; 354 354 break; 355 355 case MACEISA_PARALLEL_IRQ ... MACEISA_SERIAL2_RDMAOR_IRQ:
+1 -1
arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_irq.c
··· 337 337 } 338 338 339 339 //#define TOSHIBA_RBTX4927_PIC_ACTION(s) { no_action, 0, CPU_MASK_NONE, s, NULL, NULL } 340 - #define TOSHIBA_RBTX4927_PIC_ACTION(s) { no_action, SA_SHIRQ, CPU_MASK_NONE, s, NULL, NULL } 340 + #define TOSHIBA_RBTX4927_PIC_ACTION(s) { no_action, IRQF_SHARED, CPU_MASK_NONE, s, NULL, NULL } 341 341 static struct irqaction toshiba_rbtx4927_irq_ioc_action = 342 342 TOSHIBA_RBTX4927_PIC_ACTION(TOSHIBA_RBTX4927_IOC_NAME); 343 343 #ifdef CONFIG_TOSHIBA_FPCIB0
+1 -1
include/asm-mips/mach-generic/floppy.h
··· 98 98 static inline int fd_request_irq(void) 99 99 { 100 100 return request_irq(FLOPPY_IRQ, floppy_interrupt, 101 - SA_INTERRUPT, "floppy", NULL); 101 + IRQF_DISABLED, "floppy", NULL); 102 102 } 103 103 104 104 static inline void fd_free_irq(void)
+1 -1
include/asm-mips/mach-jazz/floppy.h
··· 90 90 static inline int fd_request_irq(void) 91 91 { 92 92 return request_irq(FLOPPY_IRQ, floppy_interrupt, 93 - SA_INTERRUPT, "floppy", NULL); 93 + IRQF_DISABLED, "floppy", NULL); 94 94 } 95 95 96 96 static inline void fd_free_irq(void)
-11
include/asm-mips/signal.h
··· 64 64 * SA_FLAGS values: 65 65 * 66 66 * SA_ONSTACK indicates that a registered stack_t will be used. 67 - * SA_INTERRUPT is a no-op, but left due to historical reasons. Use the 68 67 * SA_RESTART flag to get restarting signals (which were the default long ago) 69 68 * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. 70 69 * SA_RESETHAND clears the handler when the signal is delivered. ··· 83 84 84 85 #define SA_NOMASK SA_NODEFER 85 86 #define SA_ONESHOT SA_RESETHAND 86 - #define SA_INTERRUPT 0x20000000 /* dummy -- ignored */ 87 87 88 88 #define SA_RESTORER 0x04000000 /* Only for o32 */ 89 89 ··· 96 98 #define SIGSTKSZ 8192 97 99 98 100 #ifdef __KERNEL__ 99 - 100 - /* 101 - * These values of sa_flags are used only by the kernel as part of the 102 - * irq handling routines. 103 - * 104 - * SA_INTERRUPT is also used by the irq handling routines. 105 - * SA_SHIRQ flag is for shared interrupt support on PCI and EISA. 106 - */ 107 - #define SA_SAMPLE_RANDOM SA_RESTART 108 101 109 102 #ifdef CONFIG_TRAD_SIGNALS 110 103 #define sig_uses_siginfo(ka) ((ka)->sa.sa_flags & SA_SIGINFO)