Commit f40298fd authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

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

Use the new IRQF_ constants and remove the SA_INTERRUPT define
Signed-off-by: default avatarThomas 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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b0b9fdc1
...@@ -892,7 +892,7 @@ static void au1xxx_dbdma_init(void) ...@@ -892,7 +892,7 @@ static void au1xxx_dbdma_init(void)
#error Unknown Au1x00 SOC #error Unknown Au1x00 SOC
#endif #endif
if (request_irq(irq_nr, dbdma_interrupt, SA_INTERRUPT, if (request_irq(irq_nr, dbdma_interrupt, IRQF_DISABLED,
"Au1xxx dbdma", (void *)dbdma_gptr)) "Au1xxx dbdma", (void *)dbdma_gptr))
printk("Can't get 1550 dbdma irq"); printk("Can't get 1550 dbdma irq");
} }
......
...@@ -309,7 +309,7 @@ void startup_match20_interrupt(irqreturn_t (*handler)(int, void *, struct pt_reg ...@@ -309,7 +309,7 @@ void startup_match20_interrupt(irqreturn_t (*handler)(int, void *, struct pt_reg
* can avoid it. --cgray * can avoid it. --cgray
*/ */
action.dev_id = handler; action.dev_id = handler;
action.flags = SA_INTERRUPT; action.flags = IRQF_DISABLED;
cpus_clear(action.mask); cpus_clear(action.mask);
action.name = "Au1xxx TOY"; action.name = "Au1xxx TOY";
action.handler = handler; action.handler = handler;
......
...@@ -1465,14 +1465,14 @@ usbdev_init(struct usb_device_descriptor* dev_desc, ...@@ -1465,14 +1465,14 @@ usbdev_init(struct usb_device_descriptor* dev_desc,
*/ */
/* request the USB device transfer complete interrupt */ /* request the USB device transfer complete interrupt */
if (request_irq(AU1000_USB_DEV_REQ_INT, req_sus_intr, SA_INTERRUPT, if (request_irq(AU1000_USB_DEV_REQ_INT, req_sus_intr, IRQF_DISABLED,
"USBdev req", &usbdev)) { "USBdev req", &usbdev)) {
err("Can't get device request intr"); err("Can't get device request intr");
ret = -ENXIO; ret = -ENXIO;
goto out; goto out;
} }
/* request the USB device suspend interrupt */ /* request the USB device suspend interrupt */
if (request_irq(AU1000_USB_DEV_SUS_INT, req_sus_intr, SA_INTERRUPT, if (request_irq(AU1000_USB_DEV_SUS_INT, req_sus_intr, IRQF_DISABLED,
"USBdev sus", &usbdev)) { "USBdev sus", &usbdev)) {
err("Can't get device suspend intr"); err("Can't get device suspend intr");
ret = -ENXIO; ret = -ENXIO;
...@@ -1483,7 +1483,7 @@ usbdev_init(struct usb_device_descriptor* dev_desc, ...@@ -1483,7 +1483,7 @@ usbdev_init(struct usb_device_descriptor* dev_desc,
if ((ep0->indma = request_au1000_dma(ep_dma_id[0].id, if ((ep0->indma = request_au1000_dma(ep_dma_id[0].id,
ep_dma_id[0].str, ep_dma_id[0].str,
dma_done_ep0_intr, dma_done_ep0_intr,
SA_INTERRUPT, IRQF_DISABLED,
&usbdev)) < 0) { &usbdev)) < 0) {
err("Can't get %s DMA", ep_dma_id[0].str); err("Can't get %s DMA", ep_dma_id[0].str);
ret = -ENXIO; ret = -ENXIO;
...@@ -1516,7 +1516,7 @@ usbdev_init(struct usb_device_descriptor* dev_desc, ...@@ -1516,7 +1516,7 @@ usbdev_init(struct usb_device_descriptor* dev_desc,
request_au1000_dma(ep_dma_id[ep->address].id, request_au1000_dma(ep_dma_id[ep->address].id,
ep_dma_id[ep->address].str, ep_dma_id[ep->address].str,
dma_done_ep_intr, dma_done_ep_intr,
SA_INTERRUPT, IRQF_DISABLED,
&usbdev); &usbdev);
if (ep->indma < 0) { if (ep->indma < 0) {
err("Can't get %s DMA", err("Can't get %s DMA",
......
...@@ -113,7 +113,7 @@ static int __exit iodev_remove(struct device *dev) ...@@ -113,7 +113,7 @@ static int __exit iodev_remove(struct device *dev)
static int iodev_open(struct inode *i, struct file *f) static int iodev_open(struct inode *i, struct file *f)
{ {
return request_irq(iodev_irq, iodev_irqhdl, SA_INTERRUPT, return request_irq(iodev_irq, iodev_irqhdl, IRQF_DISABLED,
iodev_name, &miscdev); iodev_name, &miscdev);
} }
......
...@@ -105,7 +105,7 @@ static struct irqaction fpuirq = { ...@@ -105,7 +105,7 @@ static struct irqaction fpuirq = {
}; };
static struct irqaction busirq = { static struct irqaction busirq = {
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "bus error", .name = "bus error",
}; };
...@@ -124,7 +124,7 @@ static void __init dec_be_init(void) ...@@ -124,7 +124,7 @@ static void __init dec_be_init(void)
case MACH_DS23100: /* DS2100/DS3100 Pmin/Pmax */ case MACH_DS23100: /* DS2100/DS3100 Pmin/Pmax */
board_be_handler = dec_kn01_be_handler; board_be_handler = dec_kn01_be_handler;
busirq.handler = dec_kn01_be_interrupt; busirq.handler = dec_kn01_be_interrupt;
busirq.flags |= SA_SHIRQ; busirq.flags |= IRQF_SHARED;
dec_kn01_be_init(); dec_kn01_be_init();
break; break;
case MACH_DS5000_1XX: /* DS5000/1xx 3min */ case MACH_DS5000_1XX: /* DS5000/1xx 3min */
......
...@@ -77,7 +77,7 @@ void gt64120_time_init(void) ...@@ -77,7 +77,7 @@ void gt64120_time_init(void)
* the values to the correct interrupt line. * the values to the correct interrupt line.
*/ */
timer.handler = gt64120_irq; timer.handler = gt64120_irq;
timer.flags = SA_SHIRQ | SA_INTERRUPT; timer.flags = IRQF_SHARED | IRQF_DISABLED;
timer.name = "timer"; timer.name = "timer";
timer.dev_id = NULL; timer.dev_id = NULL;
timer.next = NULL; timer.next = NULL;
......
...@@ -487,7 +487,7 @@ static struct file_operations rtlx_fops = { ...@@ -487,7 +487,7 @@ static struct file_operations rtlx_fops = {
static struct irqaction rtlx_irq = { static struct irqaction rtlx_irq = {
.handler = rtlx_interrupt, .handler = rtlx_interrupt,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "RTLX", .name = "RTLX",
}; };
......
...@@ -130,13 +130,13 @@ irqreturn_t ipi_call_interrupt(int irq, void *dev_id, struct pt_regs *regs) ...@@ -130,13 +130,13 @@ irqreturn_t ipi_call_interrupt(int irq, void *dev_id, struct pt_regs *regs)
static struct irqaction irq_resched = { static struct irqaction irq_resched = {
.handler = ipi_resched_interrupt, .handler = ipi_resched_interrupt,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "IPI_resched" .name = "IPI_resched"
}; };
static struct irqaction irq_call = { static struct irqaction irq_call = {
.handler = ipi_call_interrupt, .handler = ipi_call_interrupt,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "IPI_call" .name = "IPI_call"
}; };
......
...@@ -1002,7 +1002,7 @@ void setup_cross_vpe_interrupts(void) ...@@ -1002,7 +1002,7 @@ void setup_cross_vpe_interrupts(void)
set_vi_handler(MIPS_CPU_IPI_IRQ, ipi_irq_dispatch); set_vi_handler(MIPS_CPU_IPI_IRQ, ipi_irq_dispatch);
irq_ipi.handler = ipi_interrupt; irq_ipi.handler = ipi_interrupt;
irq_ipi.flags = SA_INTERRUPT; irq_ipi.flags = IRQF_DISABLED;
irq_ipi.name = "SMTC_IPI"; irq_ipi.name = "SMTC_IPI";
setup_irq_smtc(cpu_ipi_irq, &irq_ipi, (0x100 << MIPS_CPU_IPI_IRQ)); setup_irq_smtc(cpu_ipi_irq, &irq_ipi, (0x100 << MIPS_CPU_IPI_IRQ));
......
...@@ -579,7 +579,7 @@ unsigned int mips_hpt_frequency; ...@@ -579,7 +579,7 @@ unsigned int mips_hpt_frequency;
static struct irqaction timer_irqaction = { static struct irqaction timer_irqaction = {
.handler = timer_interrupt, .handler = timer_interrupt,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "timer", .name = "timer",
}; };
......
...@@ -71,7 +71,7 @@ asmlinkage void plat_irq_dispatch(struct pt_regs *regs) ...@@ -71,7 +71,7 @@ asmlinkage void plat_irq_dispatch(struct pt_regs *regs)
} }
static struct irqaction cascade_mv64340 = { static struct irqaction cascade_mv64340 = {
no_action, SA_INTERRUPT, CPU_MASK_NONE, "MV64340-Cascade", NULL, NULL no_action, IRQF_DISABLED, CPU_MASK_NONE, "MV64340-Cascade", NULL, NULL
}; };
void __init arch_init_irq(void) void __init arch_init_irq(void)
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
#include <asm/system.h> #include <asm/system.h>
static struct irqaction cascade_mv64340 = { static struct irqaction cascade_mv64340 = {
no_action, SA_INTERRUPT, CPU_MASK_NONE, "MV64340-Cascade", NULL, NULL no_action, IRQF_DISABLED, CPU_MASK_NONE, "MV64340-Cascade", NULL, NULL
}; };
void __init arch_init_irq(void) void __init arch_init_irq(void)
......
...@@ -52,11 +52,11 @@ extern void uart_irq_init(void); ...@@ -52,11 +52,11 @@ extern void uart_irq_init(void);
extern void cpci_irq_init(void); extern void cpci_irq_init(void);
static struct irqaction cascade_fpga = { static struct irqaction cascade_fpga = {
no_action, SA_INTERRUPT, CPU_MASK_NONE, "cascade via FPGA", NULL, NULL no_action, IRQF_DISABLED, CPU_MASK_NONE, "cascade via FPGA", NULL, NULL
}; };
static struct irqaction cascade_mv64340 = { static struct irqaction cascade_mv64340 = {
no_action, SA_INTERRUPT, CPU_MASK_NONE, "cascade via MV64340", NULL, NULL no_action, IRQF_DISABLED, CPU_MASK_NONE, "cascade via MV64340", NULL, NULL
}; };
extern void ll_uart_irq(struct pt_regs *regs); extern void ll_uart_irq(struct pt_regs *regs);
......
...@@ -173,7 +173,7 @@ void gt64240_time_init(void) ...@@ -173,7 +173,7 @@ void gt64240_time_init(void)
* the values to the correct interrupt line. * the values to the correct interrupt line.
*/ */
timer.handler = &gt64240_p0int_irq; timer.handler = &gt64240_p0int_irq;
timer.flags = SA_SHIRQ | SA_INTERRUPT; timer.flags = IRQF_SHARED | IRQF_DISABLED;
timer.name = "timer"; timer.name = "timer";
timer.dev_id = NULL; timer.dev_id = NULL;
timer.next = NULL; timer.next = NULL;
......
...@@ -219,13 +219,13 @@ static struct hw_interrupt_type level_irq_type = { ...@@ -219,13 +219,13 @@ static struct hw_interrupt_type level_irq_type = {
static struct irqaction gic_action = { static struct irqaction gic_action = {
.handler = no_action, .handler = no_action,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "GIC", .name = "GIC",
}; };
static struct irqaction timer_action = { static struct irqaction timer_action = {
.handler = no_action, .handler = no_action,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "Timer", .name = "Timer",
}; };
......
...@@ -272,32 +272,32 @@ static void indy_buserror_irq(struct pt_regs *regs) ...@@ -272,32 +272,32 @@ static void indy_buserror_irq(struct pt_regs *regs)
static struct irqaction local0_cascade = { static struct irqaction local0_cascade = {
.handler = no_action, .handler = no_action,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "local0 cascade", .name = "local0 cascade",
}; };
static struct irqaction local1_cascade = { static struct irqaction local1_cascade = {
.handler = no_action, .handler = no_action,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "local1 cascade", .name = "local1 cascade",
}; };
static struct irqaction buserr = { static struct irqaction buserr = {
.handler = no_action, .handler = no_action,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "Bus Error", .name = "Bus Error",
}; };
static struct irqaction map0_cascade = { static struct irqaction map0_cascade = {
.handler = no_action, .handler = no_action,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "mapable0 cascade", .name = "mapable0 cascade",
}; };
#ifdef USE_LIO3_IRQ #ifdef USE_LIO3_IRQ
static struct irqaction map1_cascade = { static struct irqaction map1_cascade = {
.handler = no_action, .handler = no_action,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.name = "mapable1 cascade", .name = "mapable1 cascade",
}; };
#define SGI_INTERRUPTS SGINT_END #define SGI_INTERRUPTS SGINT_END
......
...@@ -118,7 +118,7 @@ static int ms1bit(unsigned long x) ...@@ -118,7 +118,7 @@ static int ms1bit(unsigned long x)
} }
/* /*
* This code is unnecessarily complex, because we do SA_INTERRUPT * This code is unnecessarily complex, because we do IRQF_DISABLED
* intr enabling. Basically, once we grab the set of intrs we need * intr enabling. Basically, once we grab the set of intrs we need
* to service, we must mask _all_ these interrupts; firstly, to make * to service, we must mask _all_ these interrupts; firstly, to make
* sure the same intr does not intr again, causing recursion that * sure the same intr does not intr again, causing recursion that
......
...@@ -217,7 +217,7 @@ static struct hw_interrupt_type rt_irq_type = { ...@@ -217,7 +217,7 @@ static struct hw_interrupt_type rt_irq_type = {
static struct irqaction rt_irqaction = { static struct irqaction rt_irqaction = {
.handler = ip27_rt_timer_interrupt, .handler = ip27_rt_timer_interrupt,
.flags = SA_INTERRUPT, .flags = IRQF_DISABLED,
.mask = CPU_MASK_NONE, .mask = CPU_MASK_NONE,
.name = "timer" .name = "timer"
}; };
......
...@@ -125,9 +125,9 @@ extern irqreturn_t crime_memerr_intr (int irq, void *dev_id, ...@@ -125,9 +125,9 @@ extern irqreturn_t crime_memerr_intr (int irq, void *dev_id,
extern irqreturn_t crime_cpuerr_intr (int irq, void *dev_id, extern irqreturn_t crime_cpuerr_intr (int irq, void *dev_id,
struct pt_regs *regs); struct pt_regs *regs);
struct irqaction memerr_irq = { crime_memerr_intr, SA_INTERRUPT, struct irqaction memerr_irq = { crime_memerr_intr, IRQF_DISABLED,
CPU_MASK_NONE, "CRIME memory error", NULL, NULL }; CPU_MASK_NONE, "CRIME memory error", NULL, NULL };
struct irqaction cpuerr_irq = { crime_cpuerr_intr, SA_INTERRUPT, struct irqaction cpuerr_irq = { crime_cpuerr_intr, IRQF_DISABLED,
CPU_MASK_NONE, "CRIME CPU error", NULL, NULL }; CPU_MASK_NONE, "CRIME CPU error", NULL, NULL };
/* /*
...@@ -316,9 +316,9 @@ static struct hw_interrupt_type ip32_macepci_interrupt = { ...@@ -316,9 +316,9 @@ static struct hw_interrupt_type ip32_macepci_interrupt = {
MACEISA_KEYB_POLL_INT | \ MACEISA_KEYB_POLL_INT | \
MACEISA_MOUSE_INT | \ MACEISA_MOUSE_INT | \
MACEISA_MOUSE_POLL_INT | \ MACEISA_MOUSE_POLL_INT | \
MACEISA_TIMER0_INT | \ MACEIIRQF_TIMER0_INT | \
MACEISA_TIMER1_INT | \ MACEIIRQF_TIMER1_INT | \
MACEISA_TIMER2_INT) MACEIIRQF_TIMER2_INT)
#define MACEISA_SUPERIO_INT (MACEISA_PARALLEL_INT | \ #define MACEISA_SUPERIO_INT (MACEISA_PARALLEL_INT | \
MACEISA_PAR_CTXA_INT | \ MACEISA_PAR_CTXA_INT | \
MACEISA_PAR_CTXB_INT | \ MACEISA_PAR_CTXB_INT | \
...@@ -349,7 +349,7 @@ static void enable_maceisa_irq (unsigned int irq) ...@@ -349,7 +349,7 @@ static void enable_maceisa_irq (unsigned int irq)
case MACEISA_AUDIO_SW_IRQ ... MACEISA_AUDIO3_MERR_IRQ: case MACEISA_AUDIO_SW_IRQ ... MACEISA_AUDIO3_MERR_IRQ:
crime_int = MACE_AUDIO_INT; crime_int = MACE_AUDIO_INT;
break; break;
case MACEISA_RTC_IRQ ... MACEISA_TIMER2_IRQ: case MACEISA_RTC_IRQ ... MACEIIRQF_TIMER2_IRQ:
crime_int = MACE_MISC_INT; crime_int = MACE_MISC_INT;
break; break;
case MACEISA_PARALLEL_IRQ ... MACEISA_SERIAL2_RDMAOR_IRQ: case MACEISA_PARALLEL_IRQ ... MACEISA_SERIAL2_RDMAOR_IRQ:
......
...@@ -337,7 +337,7 @@ int toshiba_rbtx4927_irq_nested(int sw_irq) ...@@ -337,7 +337,7 @@ int toshiba_rbtx4927_irq_nested(int sw_irq)
} }
//#define TOSHIBA_RBTX4927_PIC_ACTION(s) { no_action, 0, CPU_MASK_NONE, s, NULL, NULL } //#define TOSHIBA_RBTX4927_PIC_ACTION(s) { no_action, 0, CPU_MASK_NONE, s, NULL, NULL }
#define TOSHIBA_RBTX4927_PIC_ACTION(s) { no_action, SA_SHIRQ, CPU_MASK_NONE, s, NULL, NULL } #define TOSHIBA_RBTX4927_PIC_ACTION(s) { no_action, IRQF_SHARED, CPU_MASK_NONE, s, NULL, NULL }
static struct irqaction toshiba_rbtx4927_irq_ioc_action = static struct irqaction toshiba_rbtx4927_irq_ioc_action =
TOSHIBA_RBTX4927_PIC_ACTION(TOSHIBA_RBTX4927_IOC_NAME); TOSHIBA_RBTX4927_PIC_ACTION(TOSHIBA_RBTX4927_IOC_NAME);
#ifdef CONFIG_TOSHIBA_FPCIB0 #ifdef CONFIG_TOSHIBA_FPCIB0
......
...@@ -98,7 +98,7 @@ static inline void fd_disable_irq(void) ...@@ -98,7 +98,7 @@ static inline void fd_disable_irq(void)
static inline int fd_request_irq(void) static inline int fd_request_irq(void)
{ {
return request_irq(FLOPPY_IRQ, floppy_interrupt, return request_irq(FLOPPY_IRQ, floppy_interrupt,
SA_INTERRUPT, "floppy", NULL); IRQF_DISABLED, "floppy", NULL);
} }
static inline void fd_free_irq(void) static inline void fd_free_irq(void)
......
...@@ -90,7 +90,7 @@ static inline void fd_disable_irq(void) ...@@ -90,7 +90,7 @@ static inline void fd_disable_irq(void)
static inline int fd_request_irq(void) static inline int fd_request_irq(void)
{ {
return request_irq(FLOPPY_IRQ, floppy_interrupt, return request_irq(FLOPPY_IRQ, floppy_interrupt,
SA_INTERRUPT, "floppy", NULL); IRQF_DISABLED, "floppy", NULL);
} }
static inline void fd_free_irq(void) static inline void fd_free_irq(void)
......
...@@ -64,7 +64,6 @@ typedef unsigned long old_sigset_t; /* at least 32 bits */ ...@@ -64,7 +64,6 @@ typedef unsigned long old_sigset_t; /* at least 32 bits */
* SA_FLAGS values: * SA_FLAGS values:
* *
* SA_ONSTACK indicates that a registered stack_t will be used. * SA_ONSTACK indicates that a registered stack_t will be used.
* SA_INTERRUPT is a no-op, but left due to historical reasons. Use the
* SA_RESTART flag to get restarting signals (which were the default long ago) * SA_RESTART flag to get restarting signals (which were the default long ago)
* SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop.
* SA_RESETHAND clears the handler when the signal is delivered. * SA_RESETHAND clears the handler when the signal is delivered.
...@@ -84,7 +83,6 @@ typedef unsigned long old_sigset_t; /* at least 32 bits */ ...@@ -84,7 +83,6 @@ typedef unsigned long old_sigset_t; /* at least 32 bits */
#define SA_NOMASK SA_NODEFER #define SA_NOMASK SA_NODEFER
#define SA_ONESHOT SA_RESETHAND #define SA_ONESHOT SA_RESETHAND
#define SA_INTERRUPT 0x20000000 /* dummy -- ignored */
#define SA_RESTORER 0x04000000 /* Only for o32 */ #define SA_RESTORER 0x04000000 /* Only for o32 */
...@@ -99,15 +97,6 @@ typedef unsigned long old_sigset_t; /* at least 32 bits */ ...@@ -99,15 +97,6 @@ typedef unsigned long old_sigset_t; /* at least 32 bits */
#ifdef __KERNEL__ #ifdef __KERNEL__
/*
* These values of sa_flags are used only by the kernel as part of the
* irq handling routines.
*
* SA_INTERRUPT is also used by the irq handling routines.
* SA_SHIRQ flag is for shared interrupt support on PCI and EISA.
*/
#define SA_SAMPLE_RANDOM SA_RESTART
#ifdef CONFIG_TRAD_SIGNALS #ifdef CONFIG_TRAD_SIGNALS
#define sig_uses_siginfo(ka) ((ka)->sa.sa_flags & SA_SIGINFO) #define sig_uses_siginfo(ka) ((ka)->sa.sa_flags & SA_SIGINFO)
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment