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

[PATCH] irq-flags: PPC: 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>
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
bc59d280 6714465e

+31 -28
+1 -1
arch/ppc/8260_io/fcc_enet.c
··· 2116 2116 2117 2117 #ifdef PHY_INTERRUPT 2118 2118 #ifdef CONFIG_ADS8272 2119 - if (request_irq(PHY_INTERRUPT, mii_link_interrupt, SA_SHIRQ, 2119 + if (request_irq(PHY_INTERRUPT, mii_link_interrupt, IRQF_SHARED, 2120 2120 "mii", dev) < 0) 2121 2121 printk(KERN_CRIT "Can't get MII IRQ %d\n", PHY_INTERRUPT); 2122 2122 #else
+1 -1
arch/ppc/platforms/85xx/mpc8560_ads.c
··· 131 131 132 132 static struct irqaction cpm2_irqaction = { 133 133 .handler = cpm2_cascade, 134 - .flags = SA_INTERRUPT, 134 + .flags = IRQF_DISABLED, 135 135 .mask = CPU_MASK_NONE, 136 136 .name = "cpm2_cascade", 137 137 };
+1 -1
arch/ppc/platforms/85xx/mpc85xx_cds_common.c
··· 136 136 137 137 static struct irqaction cpm2_irqaction = { 138 138 .handler = cpm2_cascade, 139 - .flags = SA_INTERRUPT, 139 + .flags = IRQF_DISABLED, 140 140 .mask = CPU_MASK_NONE, 141 141 .name = "cpm2_cascade", 142 142 };
+1 -1
arch/ppc/platforms/85xx/stx_gp3.c
··· 166 166 167 167 static struct irqaction cpm2_irqaction = { 168 168 .handler = cpm2_cascade, 169 - .flags = SA_INTERRUPT, 169 + .flags = IRQF_DISABLED, 170 170 .mask = CPU_MASK_NONE, 171 171 .name = "cpm2_cascade", 172 172 };
+1 -1
arch/ppc/platforms/85xx/tqm85xx.c
··· 190 190 191 191 static struct irqaction cpm2_irqaction = { 192 192 .handler = cpm2_cascade, 193 - .flags = SA_INTERRUPT, 193 + .flags = IRQF_DISABLED, 194 194 .mask = CPU_MASK_NONE, 195 195 .name = "cpm2_cascade", 196 196 };
+2 -2
arch/ppc/platforms/hdpu.c
··· 837 837 mv64x60_write(&bh, MV64360_CPU0_DOORBELL_CLR, 0xff); 838 838 mv64x60_write(&bh, MV64360_CPU0_DOORBELL_MASK, 0xff); 839 839 request_irq(60, hdpu_smp_cpu0_int_handler, 840 - SA_INTERRUPT, hdpu_smp0, 0); 840 + IRQF_DISABLED, hdpu_smp0, 0); 841 841 } 842 842 843 843 if (cpu_nr == 1) { ··· 857 857 mv64x60_write(&bh, MV64360_CPU1_DOORBELL_CLR, 0x0); 858 858 mv64x60_write(&bh, MV64360_CPU1_DOORBELL_MASK, 0xff); 859 859 request_irq(28, hdpu_smp_cpu1_int_handler, 860 - SA_INTERRUPT, hdpu_smp1, 0); 860 + IRQF_DISABLED, hdpu_smp1, 0); 861 861 } 862 862 863 863 }
+1 -1
arch/ppc/platforms/radstone_ppc7d.c
··· 1310 1310 1311 1311 /* Hook up i8259 interrupt which is connected to GPP28 */ 1312 1312 request_irq(mv64360_irq_base + MV64x60_IRQ_GPP28, ppc7d_i8259_intr, 1313 - SA_INTERRUPT, "I8259 (GPP28) interrupt", (void *)0); 1313 + IRQF_DISABLED, "I8259 (GPP28) interrupt", (void *)0); 1314 1314 1315 1315 /* Configure MPP16 as watchdog NMI, MPP17 as watchdog WDE */ 1316 1316 spin_lock_irqsave(&mv64x60_lock, flags);
+1 -1
arch/ppc/platforms/sbc82xx.c
··· 145 145 146 146 static struct irqaction sbc82xx_i8259_irqaction = { 147 147 .handler = sbc82xx_i8259_demux, 148 - .flags = SA_INTERRUPT, 148 + .flags = IRQF_DISABLED, 149 149 .mask = CPU_MASK_NONE, 150 150 .name = "i8259 demux", 151 151 };
+3 -3
arch/ppc/syslib/gt64260_pic.c
··· 297 297 298 298 /* Register CPU interface error interrupt handler */ 299 299 if ((rc = request_irq(MV64x60_IRQ_CPU_ERR, 300 - gt64260_cpu_error_int_handler, SA_INTERRUPT, CPU_INTR_STR, 0))) 300 + gt64260_cpu_error_int_handler, IRQF_DISABLED, CPU_INTR_STR, 0))) 301 301 printk(KERN_WARNING "Can't register cpu error handler: %d", rc); 302 302 303 303 mv64x60_write(&bh, MV64x60_CPU_ERR_MASK, 0); ··· 305 305 306 306 /* Register PCI 0 error interrupt handler */ 307 307 if ((rc = request_irq(MV64360_IRQ_PCI0, gt64260_pci_error_int_handler, 308 - SA_INTERRUPT, PCI0_INTR_STR, (void *)0))) 308 + IRQF_DISABLED, PCI0_INTR_STR, (void *)0))) 309 309 printk(KERN_WARNING "Can't register pci 0 error handler: %d", 310 310 rc); 311 311 ··· 314 314 315 315 /* Register PCI 1 error interrupt handler */ 316 316 if ((rc = request_irq(MV64360_IRQ_PCI1, gt64260_pci_error_int_handler, 317 - SA_INTERRUPT, PCI1_INTR_STR, (void *)1))) 317 + IRQF_DISABLED, PCI1_INTR_STR, (void *)1))) 318 318 printk(KERN_WARNING "Can't register pci 1 error handler: %d", 319 319 rc); 320 320
+1 -1
arch/ppc/syslib/ibm440gx_common.c
··· 149 149 unsigned long flags; 150 150 151 151 /* Install error handler */ 152 - if (request_irq(87, l2c_error_handler, SA_INTERRUPT, "L2C", 0) < 0){ 152 + if (request_irq(87, l2c_error_handler, IRQF_DISABLED, "L2C", 0) < 0){ 153 153 printk(KERN_ERR "Cannot install L2C error handler, cache is not enabled\n"); 154 154 return; 155 155 }
+1 -1
arch/ppc/syslib/m82xx_pci.c
··· 139 139 140 140 static struct irqaction pq2pci_irqaction = { 141 141 .handler = pq2pci_irq_demux, 142 - .flags = SA_INTERRUPT, 142 + .flags = IRQF_DISABLED, 143 143 .mask = CPU_MASK_NONE, 144 144 .name = "PQ2 PCI cascade", 145 145 };
+4 -4
arch/ppc/syslib/mv64360_pic.c
··· 380 380 /* Clear old errors and register CPU interface error intr handler */ 381 381 mv64x60_write(&bh, MV64x60_CPU_ERR_CAUSE, 0); 382 382 if ((rc = request_irq(MV64x60_IRQ_CPU_ERR + mv64360_irq_base, 383 - mv64360_cpu_error_int_handler, SA_INTERRUPT, CPU_INTR_STR, 0))) 383 + mv64360_cpu_error_int_handler, IRQF_DISABLED, CPU_INTR_STR, 0))) 384 384 printk(KERN_WARNING "Can't register cpu error handler: %d", rc); 385 385 386 386 mv64x60_write(&bh, MV64x60_CPU_ERR_MASK, 0); ··· 389 389 /* Clear old errors and register internal SRAM error intr handler */ 390 390 mv64x60_write(&bh, MV64360_SRAM_ERR_CAUSE, 0); 391 391 if ((rc = request_irq(MV64360_IRQ_SRAM_PAR_ERR + mv64360_irq_base, 392 - mv64360_sram_error_int_handler,SA_INTERRUPT,SRAM_INTR_STR, 0))) 392 + mv64360_sram_error_int_handler,IRQF_DISABLED,SRAM_INTR_STR, 0))) 393 393 printk(KERN_WARNING "Can't register SRAM error handler: %d",rc); 394 394 395 395 /* Clear old errors and register PCI 0 error intr handler */ 396 396 mv64x60_write(&bh, MV64x60_PCI0_ERR_CAUSE, 0); 397 397 if ((rc = request_irq(MV64360_IRQ_PCI0 + mv64360_irq_base, 398 398 mv64360_pci_error_int_handler, 399 - SA_INTERRUPT, PCI0_INTR_STR, (void *)0))) 399 + IRQF_DISABLED, PCI0_INTR_STR, (void *)0))) 400 400 printk(KERN_WARNING "Can't register pci 0 error handler: %d", 401 401 rc); 402 402 ··· 411 411 mv64x60_write(&bh, MV64x60_PCI1_ERR_CAUSE, 0); 412 412 if ((rc = request_irq(MV64360_IRQ_PCI1 + mv64360_irq_base, 413 413 mv64360_pci_error_int_handler, 414 - SA_INTERRUPT, PCI1_INTR_STR, (void *)1))) 414 + IRQF_DISABLED, PCI1_INTR_STR, (void *)1))) 415 415 printk(KERN_WARNING "Can't register pci 1 error handler: %d", 416 416 rc); 417 417
+9 -6
arch/ppc/syslib/open_pic.c
··· 575 575 if (OpenPIC == NULL) 576 576 return; 577 577 578 - /* IPIs are marked SA_INTERRUPT as they must run with irqs disabled */ 578 + /* 579 + * IPIs are marked IRQF_DISABLED as they must run with irqs 580 + * disabled 581 + */ 579 582 request_irq(OPENPIC_VEC_IPI+open_pic_irq_offset, 580 - openpic_ipi_action, SA_INTERRUPT, 583 + openpic_ipi_action, IRQF_DISABLED, 581 584 "IPI0 (call function)", NULL); 582 585 request_irq(OPENPIC_VEC_IPI+open_pic_irq_offset+1, 583 - openpic_ipi_action, SA_INTERRUPT, 586 + openpic_ipi_action, IRQF_DISABLED, 584 587 "IPI1 (reschedule)", NULL); 585 588 request_irq(OPENPIC_VEC_IPI+open_pic_irq_offset+2, 586 - openpic_ipi_action, SA_INTERRUPT, 589 + openpic_ipi_action, IRQF_DISABLED, 587 590 "IPI2 (invalidate tlb)", NULL); 588 591 request_irq(OPENPIC_VEC_IPI+open_pic_irq_offset+3, 589 - openpic_ipi_action, SA_INTERRUPT, 592 + openpic_ipi_action, IRQF_DISABLED, 590 593 "IPI3 (xmon break)", NULL); 591 594 592 595 for ( i = 0; i < OPENPIC_NUM_IPI ; i++ ) ··· 694 691 695 692 static struct irqaction openpic_cascade_irqaction = { 696 693 .handler = no_action, 697 - .flags = SA_INTERRUPT, 694 + .flags = IRQF_DISABLED, 698 695 .mask = CPU_MASK_NONE, 699 696 }; 700 697
+4 -4
include/asm-ppc/floppy.h
··· 96 96 static int fd_request_irq(void) 97 97 { 98 98 if (can_use_virtual_dma) 99 - return request_irq(FLOPPY_IRQ, floppy_hardint,SA_INTERRUPT, 100 - "floppy", NULL); 99 + return request_irq(FLOPPY_IRQ, floppy_hardint, 100 + IRQF_DISABLED, "floppy", NULL); 101 101 else 102 - return request_irq(FLOPPY_IRQ, floppy_interrupt, SA_INTERRUPT, 103 - "floppy", NULL); 102 + return request_irq(FLOPPY_IRQ, floppy_interrupt, 103 + IRQF_DISABLED, "floppy", NULL); 104 104 } 105 105 106 106 static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io)