]> err.no Git - linux-2.6/commitdiff
[PATCH] irq-flags: M68K: Use the new IRQF_ constants
authorThomas Gleixner <tglx@linutronix.de>
Sun, 2 Jul 2006 02:29:19 +0000 (19:29 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 2 Jul 2006 20:58:47 +0000 (13:58 -0700)
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>
arch/m68k/amiga/amiints.c
arch/m68k/amiga/cia.c
arch/m68k/kernel/ints.c
include/asm-m68k/floppy.h
include/asm-m68k/irq.h
include/asm-m68k/signal.h
include/asm-m68k/sun3xflop.h

index f9403f4640a11bd4468f8efd8daf86c88914a82c..96c79d840cff3cac8c04e96fd050e5d8e39e9e88 100644 (file)
@@ -22,7 +22,7 @@
  *
  * 07/08/99: rewamp of the interrupt handling - we now have two types of
  *           interrupts, normal and fast handlers, fast handlers being
- *           marked with SA_INTERRUPT and runs with all other interrupts
+ *           marked with IRQF_DISABLED and runs with all other interrupts
  *           disabled. Normal interrupts disable their own source but
  *           run with all other interrupt sources enabled.
  *           PORTS and EXTER interrupts are always shared even if the
index 0956e45399e5cefcc0a12a4a7bdfea0842962068..dbad30054721cf5a1a892f8f23c9c4e3f941c9e3 100644 (file)
@@ -176,5 +176,5 @@ void __init cia_init_IRQ(struct ciabase *base)
        /* override auto int and install CIA handler */
        m68k_setup_irq_controller(&auto_irq_controller, base->handler_irq, 1);
        m68k_irq_startup(base->handler_irq);
-       request_irq(base->handler_irq, cia_handler, SA_SHIRQ, base->name, base);
+       request_irq(base->handler_irq, cia_handler, IRQF_SHARED, base->name, base);
 }
index e969f0477640381fcd20543a3cab6bfd6889e0f6..b33e37fb7b0e4eb88a78bfdfb282be42c1c9e61c 100644 (file)
@@ -192,7 +192,7 @@ int setup_irq(unsigned int irq, struct irq_node *node)
        prev = irq_list + irq;
        if (*prev) {
                /* Can't share interrupts unless both agree to */
-               if (!((*prev)->flags & node->flags & SA_SHIRQ)) {
+               if (!((*prev)->flags & node->flags & IRQF_SHARED)) {
                        spin_unlock_irqrestore(&contr->lock, flags);
                        return -EBUSY;
                }
index 63a05ed95c17f1fd833385364c1fab00c1bf9bab..57f4fdda65ab264cda6aad4c28de27af34bf8d78 100644 (file)
@@ -88,8 +88,8 @@ static __inline__ void fd_outb(unsigned char value, int port)
 static int fd_request_irq(void)
 {
        if(MACH_IS_Q40)
-               return request_irq(FLOPPY_IRQ, floppy_hardint,SA_INTERRUPT,
-                                                  "floppy", floppy_hardint);
+               return request_irq(FLOPPY_IRQ, floppy_hardint,
+                                  IRQF_DISABLED, "floppy", floppy_hardint);
        else if(MACH_IS_SUN3X)
                return sun3xflop_request_irq();
        return -ENXIO;
index f4ae7d8feac682cc9190e795f3cbdaf2a43280a3..3257f9881002dd3d69a9d6023620629b1a929c72 100644 (file)
@@ -67,8 +67,8 @@ struct pt_regs;
 
 /*
  * various flags for request_irq() - the Amiga now uses the standard
- * mechanism like all other architectures - SA_INTERRUPT and SA_SHIRQ
- * are your friends.
+ * mechanism like all other architectures - IRQF_DISABLED and
+ * IRQF_SHARED are your friends.
  */
 #ifndef MACH_AMIGA_ONLY
 #define IRQ_FLG_LOCK   (0x0001)        /* handler is not replaceable   */
index 85037a3d3e8e0cb0e1505c466ed05298e6eee08a..de1ba6ead3b4391de37e71bbb14fe2dcae92ed40 100644 (file)
@@ -74,7 +74,6 @@ typedef unsigned long sigset_t;
  * SA_FLAGS values:
  *
  * 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_NOCLDSTOP flag to turn off SIGCHLD when children stop.
  * SA_RESETHAND clears the handler when the signal is delivered.
@@ -94,7 +93,6 @@ typedef unsigned long sigset_t;
 
 #define SA_NOMASK      SA_NODEFER
 #define SA_ONESHOT     SA_RESETHAND
-#define SA_INTERRUPT   0x20000000 /* dummy -- ignored */
 
 /*
  * sigaltstack controls
index 98a9f79dab29b0c6288cae4fd10e2a9db0355c87..ca8cc41138437960cd82aadd221fc6d263589966 100644 (file)
@@ -208,7 +208,8 @@ static int sun3xflop_request_irq(void)
 
        if(!once) {
                once = 1;
-               error = request_irq(FLOPPY_IRQ, sun3xflop_hardint, SA_INTERRUPT, "floppy", NULL);
+               error = request_irq(FLOPPY_IRQ, sun3xflop_hardint,
+                                   IRQF_DISABLED, "floppy", NULL);
                return ((error == 0) ? 0 : -1);
        } else return 0;
 }