parisc: remove IRQF_DISABLED
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 2 Mar 2009 09:45:53 +0000 (10:45 +0100)
committerHelge Deller <deller@gmx.de>
Wed, 20 Feb 2013 21:50:26 +0000 (22:50 +0100)
People are playing odd games with IRQF_DISABLED, remove it.

Its not reliable, since shared interrupt lines could disable it for you,
and its possible and allowed for archs to disable IRQs to limit IRQ nesting.

Therefore, simply mandate that _ALL_ IRQ handlers are run with IRQs disabled.

[ This _should_ not break anything, since we've mandated that IRQ handlers
  _must_ be able to deal with this for a _long_ time ]

IRQ handlers should be fast, no if buts and any other exceptions. We also have
plenty instrumentation to find any offending IRQ latency sources.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/floppy.h
arch/parisc/kernel/irq.c
drivers/parisc/superio.c

index 4ca69f558fae648f2be584e4f89490fd2c338417..f84ff12574b7375f0d08396047aca4f7fc22854f 100644 (file)
@@ -157,10 +157,10 @@ static int fd_request_irq(void)
 {
        if(can_use_virtual_dma)
                return request_irq(FLOPPY_IRQ, floppy_hardint,
-                                  IRQF_DISABLED, "floppy", NULL);
+                                  0, "floppy", NULL);
        else
                return request_irq(FLOPPY_IRQ, floppy_interrupt,
-                                  IRQF_DISABLED, "floppy", NULL);
+                                  0, "floppy", NULL);
 }
 
 static unsigned long dma_mem_alloc(unsigned long size)
index 0299d63cd1128d9dc1e6d1877033565cf0cd672d..8094d3ed3b646328be21fd26738298a365089555 100644 (file)
@@ -379,14 +379,14 @@ void do_cpu_irq_mask(struct pt_regs *regs)
 static struct irqaction timer_action = {
        .handler = timer_interrupt,
        .name = "timer",
-       .flags = IRQF_DISABLED | IRQF_TIMER | IRQF_PERCPU | IRQF_IRQPOLL,
+       .flags = IRQF_TIMER | IRQF_PERCPU | IRQF_IRQPOLL,
 };
 
 #ifdef CONFIG_SMP
 static struct irqaction ipi_action = {
        .handler = ipi_interrupt,
        .name = "IPI",
-       .flags = IRQF_DISABLED | IRQF_PERCPU,
+       .flags = IRQF_PERCPU,
 };
 #endif
 
index 5003458980d33403913d88948169809d27b30a04..ac6e8e7a02df079222725fc35074045f249719b2 100644 (file)
@@ -274,7 +274,7 @@ superio_init(struct pci_dev *pcidev)
        else
                printk(KERN_ERR PFX "USB regulator not initialized!\n");
 
-       if (request_irq(pdev->irq, superio_interrupt, IRQF_DISABLED,
+       if (request_irq(pdev->irq, superio_interrupt, 0,
                        SUPERIO, (void *)sio)) {
 
                printk(KERN_ERR PFX "could not get irq\n");
This page took 0.031513 seconds and 5 git commands to generate.