diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2006-07-01 22:29:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-02 16:58:47 -0400 |
commit | f40298fddcc3c8115c6135c9733f5a0de52dcea9 (patch) | |
tree | c0ff0cc1bd589cf764a55cfc93e3f7bbd559fe92 /include/asm-mips | |
parent | b0b9fdc123cf0f1b671ac3f593d77af325ad4cf3 (diff) |
[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>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/mach-generic/floppy.h | 2 | ||||
-rw-r--r-- | include/asm-mips/mach-jazz/floppy.h | 2 | ||||
-rw-r--r-- | include/asm-mips/signal.h | 11 |
3 files changed, 2 insertions, 13 deletions
diff --git a/include/asm-mips/mach-generic/floppy.h b/include/asm-mips/mach-generic/floppy.h index 83cd69e30ec3..001a8ce17c17 100644 --- a/include/asm-mips/mach-generic/floppy.h +++ b/include/asm-mips/mach-generic/floppy.h | |||
@@ -98,7 +98,7 @@ static inline void fd_disable_irq(void) | |||
98 | static inline int fd_request_irq(void) | 98 | static inline int fd_request_irq(void) |
99 | { | 99 | { |
100 | return request_irq(FLOPPY_IRQ, floppy_interrupt, | 100 | return request_irq(FLOPPY_IRQ, floppy_interrupt, |
101 | SA_INTERRUPT, "floppy", NULL); | 101 | IRQF_DISABLED, "floppy", NULL); |
102 | } | 102 | } |
103 | 103 | ||
104 | static inline void fd_free_irq(void) | 104 | static inline void fd_free_irq(void) |
diff --git a/include/asm-mips/mach-jazz/floppy.h b/include/asm-mips/mach-jazz/floppy.h index 9413117915f4..56e9ca6ae426 100644 --- a/include/asm-mips/mach-jazz/floppy.h +++ b/include/asm-mips/mach-jazz/floppy.h | |||
@@ -90,7 +90,7 @@ static inline void fd_disable_irq(void) | |||
90 | static inline int fd_request_irq(void) | 90 | static inline int fd_request_irq(void) |
91 | { | 91 | { |
92 | return request_irq(FLOPPY_IRQ, floppy_interrupt, | 92 | return request_irq(FLOPPY_IRQ, floppy_interrupt, |
93 | SA_INTERRUPT, "floppy", NULL); | 93 | IRQF_DISABLED, "floppy", NULL); |
94 | } | 94 | } |
95 | 95 | ||
96 | static inline void fd_free_irq(void) | 96 | static inline void fd_free_irq(void) |
diff --git a/include/asm-mips/signal.h b/include/asm-mips/signal.h index a1f3a3fa9bd6..87a1dff95199 100644 --- a/include/asm-mips/signal.h +++ b/include/asm-mips/signal.h | |||
@@ -64,7 +64,6 @@ typedef unsigned long old_sigset_t; /* at least 32 bits */ | |||
64 | * SA_FLAGS values: | 64 | * SA_FLAGS values: |
65 | * | 65 | * |
66 | * SA_ONSTACK indicates that a registered stack_t will be used. | 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 | * SA_RESTART flag to get restarting signals (which were the default long ago) | 67 | * SA_RESTART flag to get restarting signals (which were the default long ago) |
69 | * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. | 68 | * SA_NOCLDSTOP flag to turn off SIGCHLD when children stop. |
70 | * SA_RESETHAND clears the handler when the signal is delivered. | 69 | * 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 | 83 | ||
85 | #define SA_NOMASK SA_NODEFER | 84 | #define SA_NOMASK SA_NODEFER |
86 | #define SA_ONESHOT SA_RESETHAND | 85 | #define SA_ONESHOT SA_RESETHAND |
87 | #define SA_INTERRUPT 0x20000000 /* dummy -- ignored */ | ||
88 | 86 | ||
89 | #define SA_RESTORER 0x04000000 /* Only for o32 */ | 87 | #define SA_RESTORER 0x04000000 /* Only for o32 */ |
90 | 88 | ||
@@ -99,15 +97,6 @@ typedef unsigned long old_sigset_t; /* at least 32 bits */ | |||
99 | 97 | ||
100 | #ifdef __KERNEL__ | 98 | #ifdef __KERNEL__ |
101 | 99 | ||
102 | /* | ||
103 | * These values of sa_flags are used only by the kernel as part of the | ||
104 | * irq handling routines. | ||
105 | * | ||
106 | * SA_INTERRUPT is also used by the irq handling routines. | ||
107 | * SA_SHIRQ flag is for shared interrupt support on PCI and EISA. | ||
108 | */ | ||
109 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
110 | |||
111 | #ifdef CONFIG_TRAD_SIGNALS | 100 | #ifdef CONFIG_TRAD_SIGNALS |
112 | #define sig_uses_siginfo(ka) ((ka)->sa.sa_flags & SA_SIGINFO) | 101 | #define sig_uses_siginfo(ka) ((ka)->sa.sa_flags & SA_SIGINFO) |
113 | #else | 102 | #else |