diff options
author | Stas Sergeev <stsp@aknet.ru> | 2005-05-01 11:59:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 11:59:02 -0400 |
commit | 7f261b5f0dccd53ed3a9a95b55c36e24a698a92a (patch) | |
tree | c6f94657e1f50e59168184758ba2859d2ad5abc9 | |
parent | d59745ce3e7aa13856bca16d3bcbb95041775ff6 (diff) |
[PATCH] move SA_xxx defines to linux/signal.h
The attached patch moves the IRQ-related SA_xxx flags (namely, SA_PROBE,
SA_SAMPLE_RANDOM and SA_SHIRQ) from all the arch-specific headers to
linux/signal.h. This looks like a left-over after the irq-handling code
was consolidated. The code was moved to kernel/irq/*, but the flags are
still left per-arch.
Right now, adding a new IRQ flag to the arch-specific header, like this
patch does:
http://cvs.sourceforge.net/viewcvs.py/*checkout*/alsa/alsa-driver/utils/patches/pcsp-kernel-2.6.10-03.diff?rev=1.1
no longer works, it breaks the compilation for all other arches, unless you
add that flag to all the other arch-specific headers too. So I think such
a clean-up makes sense.
Signed-off-by: Stas Sergeev <stsp@aknet.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/asm-alpha/signal.h | 14 | ||||
-rw-r--r-- | include/asm-arm/signal.h | 11 | ||||
-rw-r--r-- | include/asm-arm26/signal.h | 11 | ||||
-rw-r--r-- | include/asm-cris/signal.h | 14 | ||||
-rw-r--r-- | include/asm-frv/signal.h | 14 | ||||
-rw-r--r-- | include/asm-h8300/signal.h | 13 | ||||
-rw-r--r-- | include/asm-i386/signal.h | 14 | ||||
-rw-r--r-- | include/asm-ia64/signal.h | 10 | ||||
-rw-r--r-- | include/asm-m32r/signal.h | 14 | ||||
-rw-r--r-- | include/asm-m68k/signal.h | 13 | ||||
-rw-r--r-- | include/asm-m68knommu/signal.h | 13 | ||||
-rw-r--r-- | include/asm-mips/signal.h | 15 | ||||
-rw-r--r-- | include/asm-parisc/signal.h | 11 | ||||
-rw-r--r-- | include/asm-ppc/signal.h | 13 | ||||
-rw-r--r-- | include/asm-ppc64/signal.h | 13 | ||||
-rw-r--r-- | include/asm-s390/signal.h | 14 | ||||
-rw-r--r-- | include/asm-sh/signal.h | 14 | ||||
-rw-r--r-- | include/asm-sh64/signal.h | 14 | ||||
-rw-r--r-- | include/asm-sparc/signal.h | 8 | ||||
-rw-r--r-- | include/asm-sparc64/signal.h | 8 | ||||
-rw-r--r-- | include/asm-v850/signal.h | 15 | ||||
-rw-r--r-- | include/asm-x86_64/signal.h | 14 | ||||
-rw-r--r-- | include/linux/signal.h | 11 |
23 files changed, 11 insertions, 280 deletions
diff --git a/include/asm-alpha/signal.h b/include/asm-alpha/signal.h index 25f98bc5576f..4e0842b415aa 100644 --- a/include/asm-alpha/signal.h +++ b/include/asm-alpha/signal.h | |||
@@ -109,20 +109,6 @@ typedef unsigned long sigset_t; | |||
109 | #define MINSIGSTKSZ 4096 | 109 | #define MINSIGSTKSZ 4096 |
110 | #define SIGSTKSZ 16384 | 110 | #define SIGSTKSZ 16384 |
111 | 111 | ||
112 | |||
113 | #ifdef __KERNEL__ | ||
114 | /* | ||
115 | * These values of sa_flags are used only by the kernel as part of the | ||
116 | * irq handling routines. | ||
117 | * | ||
118 | * SA_INTERRUPT is also used by the irq handling routines. | ||
119 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
120 | */ | ||
121 | #define SA_PROBE SA_ONESHOT | ||
122 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
123 | #define SA_SHIRQ 0x40000000 | ||
124 | #endif | ||
125 | |||
126 | #define SIG_BLOCK 1 /* for blocking signals */ | 112 | #define SIG_BLOCK 1 /* for blocking signals */ |
127 | #define SIG_UNBLOCK 2 /* for unblocking signals */ | 113 | #define SIG_UNBLOCK 2 /* for unblocking signals */ |
128 | #define SIG_SETMASK 3 /* for setting the signal mask */ | 114 | #define SIG_SETMASK 3 /* for setting the signal mask */ |
diff --git a/include/asm-arm/signal.h b/include/asm-arm/signal.h index b033e5fd60fa..b860dc3c5dc7 100644 --- a/include/asm-arm/signal.h +++ b/include/asm-arm/signal.h | |||
@@ -114,18 +114,7 @@ typedef unsigned long sigset_t; | |||
114 | #define SIGSTKSZ 8192 | 114 | #define SIGSTKSZ 8192 |
115 | 115 | ||
116 | #ifdef __KERNEL__ | 116 | #ifdef __KERNEL__ |
117 | |||
118 | /* | ||
119 | * These values of sa_flags are used only by the kernel as part of the | ||
120 | * irq handling routines. | ||
121 | * | ||
122 | * SA_INTERRUPT is also used by the irq handling routines. | ||
123 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
124 | */ | ||
125 | #define SA_PROBE 0x80000000 | ||
126 | #define SA_SAMPLE_RANDOM 0x10000000 | ||
127 | #define SA_IRQNOMASK 0x08000000 | 117 | #define SA_IRQNOMASK 0x08000000 |
128 | #define SA_SHIRQ 0x04000000 | ||
129 | #endif | 118 | #endif |
130 | 119 | ||
131 | #define SIG_BLOCK 0 /* for blocking signals */ | 120 | #define SIG_BLOCK 0 /* for blocking signals */ |
diff --git a/include/asm-arm26/signal.h b/include/asm-arm26/signal.h index 6f62e51a2e5a..a1aacefa6562 100644 --- a/include/asm-arm26/signal.h +++ b/include/asm-arm26/signal.h | |||
@@ -114,18 +114,7 @@ typedef unsigned long sigset_t; | |||
114 | #define SIGSTKSZ 8192 | 114 | #define SIGSTKSZ 8192 |
115 | 115 | ||
116 | #ifdef __KERNEL__ | 116 | #ifdef __KERNEL__ |
117 | |||
118 | /* | ||
119 | * These values of sa_flags are used only by the kernel as part of the | ||
120 | * irq handling routines. | ||
121 | * | ||
122 | * SA_INTERRUPT is also used by the irq handling routines. | ||
123 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
124 | */ | ||
125 | #define SA_PROBE 0x80000000 | ||
126 | #define SA_SAMPLE_RANDOM 0x10000000 | ||
127 | #define SA_IRQNOMASK 0x08000000 | 117 | #define SA_IRQNOMASK 0x08000000 |
128 | #define SA_SHIRQ 0x04000000 | ||
129 | #endif | 118 | #endif |
130 | 119 | ||
131 | #define SIG_BLOCK 0 /* for blocking signals */ | 120 | #define SIG_BLOCK 0 /* for blocking signals */ |
diff --git a/include/asm-cris/signal.h b/include/asm-cris/signal.h index 3f187ec4800a..2330769ba55d 100644 --- a/include/asm-cris/signal.h +++ b/include/asm-cris/signal.h | |||
@@ -108,20 +108,6 @@ typedef unsigned long sigset_t; | |||
108 | #define MINSIGSTKSZ 2048 | 108 | #define MINSIGSTKSZ 2048 |
109 | #define SIGSTKSZ 8192 | 109 | #define SIGSTKSZ 8192 |
110 | 110 | ||
111 | #ifdef __KERNEL__ | ||
112 | |||
113 | /* | ||
114 | * These values of sa_flags are used only by the kernel as part of the | ||
115 | * irq handling routines. | ||
116 | * | ||
117 | * SA_INTERRUPT is also used by the irq handling routines. | ||
118 | * SA_SHIRQ is for shared interrupt support | ||
119 | */ | ||
120 | #define SA_PROBE SA_ONESHOT | ||
121 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
122 | #define SA_SHIRQ 0x04000000 | ||
123 | #endif | ||
124 | |||
125 | #define SIG_BLOCK 0 /* for blocking signals */ | 111 | #define SIG_BLOCK 0 /* for blocking signals */ |
126 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 112 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
127 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 113 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/asm-frv/signal.h b/include/asm-frv/signal.h index f18952f86a80..c930bb176875 100644 --- a/include/asm-frv/signal.h +++ b/include/asm-frv/signal.h | |||
@@ -107,20 +107,6 @@ typedef unsigned long sigset_t; | |||
107 | #define MINSIGSTKSZ 2048 | 107 | #define MINSIGSTKSZ 2048 |
108 | #define SIGSTKSZ 8192 | 108 | #define SIGSTKSZ 8192 |
109 | 109 | ||
110 | #ifdef __KERNEL__ | ||
111 | |||
112 | /* | ||
113 | * These values of sa_flags are used only by the kernel as part of the | ||
114 | * irq handling routines. | ||
115 | * | ||
116 | * SA_INTERRUPT is also used by the irq handling routines. | ||
117 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
118 | */ | ||
119 | #define SA_PROBE SA_ONESHOT | ||
120 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
121 | #define SA_SHIRQ 0x04000000 | ||
122 | #endif | ||
123 | |||
124 | #define SIG_BLOCK 0 /* for blocking signals */ | 110 | #define SIG_BLOCK 0 /* for blocking signals */ |
125 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 111 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
126 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 112 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/asm-h8300/signal.h b/include/asm-h8300/signal.h index 3a08544a473e..ac3e01bd6396 100644 --- a/include/asm-h8300/signal.h +++ b/include/asm-h8300/signal.h | |||
@@ -107,19 +107,6 @@ typedef unsigned long sigset_t; | |||
107 | #define MINSIGSTKSZ 2048 | 107 | #define MINSIGSTKSZ 2048 |
108 | #define SIGSTKSZ 8192 | 108 | #define SIGSTKSZ 8192 |
109 | 109 | ||
110 | #ifdef __KERNEL__ | ||
111 | /* | ||
112 | * These values of sa_flags are used only by the kernel as part of the | ||
113 | * irq handling routines. | ||
114 | * | ||
115 | * SA_INTERRUPT is also used by the irq handling routines. | ||
116 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
117 | */ | ||
118 | #define SA_PROBE SA_ONESHOT | ||
119 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
120 | #define SA_SHIRQ 0x04000000 | ||
121 | #endif | ||
122 | |||
123 | #define SIG_BLOCK 0 /* for blocking signals */ | 110 | #define SIG_BLOCK 0 /* for blocking signals */ |
124 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 111 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
125 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 112 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/asm-i386/signal.h b/include/asm-i386/signal.h index 7ef343b6812d..0f082bd1c455 100644 --- a/include/asm-i386/signal.h +++ b/include/asm-i386/signal.h | |||
@@ -110,20 +110,6 @@ typedef unsigned long sigset_t; | |||
110 | #define MINSIGSTKSZ 2048 | 110 | #define MINSIGSTKSZ 2048 |
111 | #define SIGSTKSZ 8192 | 111 | #define SIGSTKSZ 8192 |
112 | 112 | ||
113 | #ifdef __KERNEL__ | ||
114 | |||
115 | /* | ||
116 | * These values of sa_flags are used only by the kernel as part of the | ||
117 | * irq handling routines. | ||
118 | * | ||
119 | * SA_INTERRUPT is also used by the irq handling routines. | ||
120 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
121 | */ | ||
122 | #define SA_PROBE SA_ONESHOT | ||
123 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
124 | #define SA_SHIRQ 0x04000000 | ||
125 | #endif | ||
126 | |||
127 | #define SIG_BLOCK 0 /* for blocking signals */ | 113 | #define SIG_BLOCK 0 /* for blocking signals */ |
128 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 114 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
129 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 115 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/asm-ia64/signal.h b/include/asm-ia64/signal.h index 660a759744dd..85a577ae9146 100644 --- a/include/asm-ia64/signal.h +++ b/include/asm-ia64/signal.h | |||
@@ -114,16 +114,6 @@ | |||
114 | #define _NSIG_BPW 64 | 114 | #define _NSIG_BPW 64 |
115 | #define _NSIG_WORDS (_NSIG / _NSIG_BPW) | 115 | #define _NSIG_WORDS (_NSIG / _NSIG_BPW) |
116 | 116 | ||
117 | /* | ||
118 | * These values of sa_flags are used only by the kernel as part of the | ||
119 | * irq handling routines. | ||
120 | * | ||
121 | * SA_INTERRUPT is also used by the irq handling routines. | ||
122 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
123 | */ | ||
124 | #define SA_PROBE SA_ONESHOT | ||
125 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
126 | #define SA_SHIRQ 0x04000000 | ||
127 | #define SA_PERCPU_IRQ 0x02000000 | 117 | #define SA_PERCPU_IRQ 0x02000000 |
128 | 118 | ||
129 | #endif /* __KERNEL__ */ | 119 | #endif /* __KERNEL__ */ |
diff --git a/include/asm-m32r/signal.h b/include/asm-m32r/signal.h index ce46eaea4494..6e55fd421883 100644 --- a/include/asm-m32r/signal.h +++ b/include/asm-m32r/signal.h | |||
@@ -114,20 +114,6 @@ typedef unsigned long sigset_t; | |||
114 | #define MINSIGSTKSZ 2048 | 114 | #define MINSIGSTKSZ 2048 |
115 | #define SIGSTKSZ 8192 | 115 | #define SIGSTKSZ 8192 |
116 | 116 | ||
117 | #ifdef __KERNEL__ | ||
118 | |||
119 | /* | ||
120 | * These values of sa_flags are used only by the kernel as part of the | ||
121 | * irq handling routines. | ||
122 | * | ||
123 | * SA_INTERRUPT is also used by the irq handling routines. | ||
124 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
125 | */ | ||
126 | #define SA_PROBE SA_ONESHOT | ||
127 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
128 | #define SA_SHIRQ 0x04000000 | ||
129 | #endif | ||
130 | |||
131 | #define SIG_BLOCK 0 /* for blocking signals */ | 117 | #define SIG_BLOCK 0 /* for blocking signals */ |
132 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 118 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
133 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 119 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/asm-m68k/signal.h b/include/asm-m68k/signal.h index 6681bb6a5523..1d016e9f19bf 100644 --- a/include/asm-m68k/signal.h +++ b/include/asm-m68k/signal.h | |||
@@ -105,19 +105,6 @@ typedef unsigned long sigset_t; | |||
105 | #define MINSIGSTKSZ 2048 | 105 | #define MINSIGSTKSZ 2048 |
106 | #define SIGSTKSZ 8192 | 106 | #define SIGSTKSZ 8192 |
107 | 107 | ||
108 | #ifdef __KERNEL__ | ||
109 | /* | ||
110 | * These values of sa_flags are used only by the kernel as part of the | ||
111 | * irq handling routines. | ||
112 | * | ||
113 | * SA_INTERRUPT is also used by the irq handling routines. | ||
114 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
115 | */ | ||
116 | #define SA_PROBE SA_ONESHOT | ||
117 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
118 | #define SA_SHIRQ 0x04000000 | ||
119 | #endif | ||
120 | |||
121 | #define SIG_BLOCK 0 /* for blocking signals */ | 108 | #define SIG_BLOCK 0 /* for blocking signals */ |
122 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 109 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
123 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 110 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/asm-m68knommu/signal.h b/include/asm-m68knommu/signal.h index 486cbb0dc088..37c9c8a024ba 100644 --- a/include/asm-m68knommu/signal.h +++ b/include/asm-m68knommu/signal.h | |||
@@ -105,19 +105,6 @@ typedef unsigned long sigset_t; | |||
105 | #define MINSIGSTKSZ 2048 | 105 | #define MINSIGSTKSZ 2048 |
106 | #define SIGSTKSZ 8192 | 106 | #define SIGSTKSZ 8192 |
107 | 107 | ||
108 | #ifdef __KERNEL__ | ||
109 | /* | ||
110 | * These values of sa_flags are used only by the kernel as part of the | ||
111 | * irq handling routines. | ||
112 | * | ||
113 | * SA_INTERRUPT is also used by the irq handling routines. | ||
114 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
115 | */ | ||
116 | #define SA_PROBE SA_ONESHOT | ||
117 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
118 | #define SA_SHIRQ 0x04000000 | ||
119 | #endif | ||
120 | |||
121 | #define SIG_BLOCK 0 /* for blocking signals */ | 108 | #define SIG_BLOCK 0 /* for blocking signals */ |
122 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 109 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
123 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 110 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/asm-mips/signal.h b/include/asm-mips/signal.h index 994987db61be..d81356731eb6 100644 --- a/include/asm-mips/signal.h +++ b/include/asm-mips/signal.h | |||
@@ -98,21 +98,6 @@ typedef unsigned long old_sigset_t; /* at least 32 bits */ | |||
98 | #define MINSIGSTKSZ 2048 | 98 | #define MINSIGSTKSZ 2048 |
99 | #define SIGSTKSZ 8192 | 99 | #define SIGSTKSZ 8192 |
100 | 100 | ||
101 | #ifdef __KERNEL__ | ||
102 | |||
103 | /* | ||
104 | * These values of sa_flags are used only by the kernel as part of the | ||
105 | * irq handling routines. | ||
106 | * | ||
107 | * SA_INTERRUPT is also used by the irq handling routines. | ||
108 | * SA_SHIRQ flag is for shared interrupt support on PCI and EISA. | ||
109 | */ | ||
110 | #define SA_PROBE SA_ONESHOT | ||
111 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
112 | #define SA_SHIRQ 0x02000000 | ||
113 | |||
114 | #endif /* __KERNEL__ */ | ||
115 | |||
116 | #define SIG_BLOCK 1 /* for blocking signals */ | 101 | #define SIG_BLOCK 1 /* for blocking signals */ |
117 | #define SIG_UNBLOCK 2 /* for unblocking signals */ | 102 | #define SIG_UNBLOCK 2 /* for unblocking signals */ |
118 | #define SIG_SETMASK 3 /* for setting the signal mask */ | 103 | #define SIG_SETMASK 3 /* for setting the signal mask */ |
diff --git a/include/asm-parisc/signal.h b/include/asm-parisc/signal.h index 358f577c8eb8..25cb23ef7dd1 100644 --- a/include/asm-parisc/signal.h +++ b/include/asm-parisc/signal.h | |||
@@ -89,17 +89,6 @@ | |||
89 | #define _NSIG_BPW BITS_PER_LONG | 89 | #define _NSIG_BPW BITS_PER_LONG |
90 | #define _NSIG_WORDS (_NSIG / _NSIG_BPW) | 90 | #define _NSIG_WORDS (_NSIG / _NSIG_BPW) |
91 | 91 | ||
92 | /* | ||
93 | * These values of sa_flags are used only by the kernel as part of the | ||
94 | * irq handling routines. | ||
95 | * | ||
96 | * SA_INTERRUPT is also used by the irq handling routines. | ||
97 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
98 | */ | ||
99 | #define SA_PROBE SA_ONESHOT | ||
100 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
101 | #define SA_SHIRQ 0x04000000 | ||
102 | |||
103 | #endif /* __KERNEL__ */ | 92 | #endif /* __KERNEL__ */ |
104 | 93 | ||
105 | #define SIG_BLOCK 0 /* for blocking signals */ | 94 | #define SIG_BLOCK 0 /* for blocking signals */ |
diff --git a/include/asm-ppc/signal.h b/include/asm-ppc/signal.h index 8cc8b88d4edd..d890dabd5a69 100644 --- a/include/asm-ppc/signal.h +++ b/include/asm-ppc/signal.h | |||
@@ -99,19 +99,6 @@ typedef struct { | |||
99 | 99 | ||
100 | #define MINSIGSTKSZ 2048 | 100 | #define MINSIGSTKSZ 2048 |
101 | #define SIGSTKSZ 8192 | 101 | #define SIGSTKSZ 8192 |
102 | #ifdef __KERNEL__ | ||
103 | |||
104 | /* | ||
105 | * These values of sa_flags are used only by the kernel as part of the | ||
106 | * irq handling routines. | ||
107 | * | ||
108 | * SA_INTERRUPT is also used by the irq handling routines. | ||
109 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
110 | */ | ||
111 | #define SA_PROBE SA_ONESHOT | ||
112 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
113 | #define SA_SHIRQ 0x04000000 | ||
114 | #endif /* __KERNEL__ */ | ||
115 | 102 | ||
116 | #define SIG_BLOCK 0 /* for blocking signals */ | 103 | #define SIG_BLOCK 0 /* for blocking signals */ |
117 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 104 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
diff --git a/include/asm-ppc64/signal.h b/include/asm-ppc64/signal.h index fe5401adb41b..a2d7bbb4befd 100644 --- a/include/asm-ppc64/signal.h +++ b/include/asm-ppc64/signal.h | |||
@@ -96,19 +96,6 @@ typedef struct { | |||
96 | 96 | ||
97 | #define MINSIGSTKSZ 2048 | 97 | #define MINSIGSTKSZ 2048 |
98 | #define SIGSTKSZ 8192 | 98 | #define SIGSTKSZ 8192 |
99 | #ifdef __KERNEL__ | ||
100 | |||
101 | /* | ||
102 | * These values of sa_flags are used only by the kernel as part of the | ||
103 | * irq handling routines. | ||
104 | * | ||
105 | * SA_INTERRUPT is also used by the irq handling routines. | ||
106 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
107 | */ | ||
108 | #define SA_PROBE SA_ONESHOT | ||
109 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
110 | #define SA_SHIRQ 0x04000000 | ||
111 | #endif | ||
112 | 99 | ||
113 | #define SIG_BLOCK 0 /* for blocking signals */ | 100 | #define SIG_BLOCK 0 /* for blocking signals */ |
114 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 101 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
diff --git a/include/asm-s390/signal.h b/include/asm-s390/signal.h index f273cdcd1cf6..bfed83a818cc 100644 --- a/include/asm-s390/signal.h +++ b/include/asm-s390/signal.h | |||
@@ -117,20 +117,6 @@ typedef unsigned long sigset_t; | |||
117 | #define MINSIGSTKSZ 2048 | 117 | #define MINSIGSTKSZ 2048 |
118 | #define SIGSTKSZ 8192 | 118 | #define SIGSTKSZ 8192 |
119 | 119 | ||
120 | #ifdef __KERNEL__ | ||
121 | |||
122 | /* | ||
123 | * These values of sa_flags are used only by the kernel as part of the | ||
124 | * irq handling routines. | ||
125 | * | ||
126 | * SA_INTERRUPT is also used by the irq handling routines. | ||
127 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
128 | */ | ||
129 | #define SA_PROBE SA_ONESHOT | ||
130 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
131 | #define SA_SHIRQ 0x04000000 | ||
132 | #endif | ||
133 | |||
134 | #define SIG_BLOCK 0 /* for blocking signals */ | 120 | #define SIG_BLOCK 0 /* for blocking signals */ |
135 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 121 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
136 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 122 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/asm-sh/signal.h b/include/asm-sh/signal.h index 0a7ff717c245..29f1ac1bf4df 100644 --- a/include/asm-sh/signal.h +++ b/include/asm-sh/signal.h | |||
@@ -108,20 +108,6 @@ typedef unsigned long sigset_t; | |||
108 | #define MINSIGSTKSZ 2048 | 108 | #define MINSIGSTKSZ 2048 |
109 | #define SIGSTKSZ 8192 | 109 | #define SIGSTKSZ 8192 |
110 | 110 | ||
111 | #ifdef __KERNEL__ | ||
112 | |||
113 | /* | ||
114 | * These values of sa_flags are used only by the kernel as part of the | ||
115 | * irq handling routines. | ||
116 | * | ||
117 | * SA_INTERRUPT is also used by the irq handling routines. | ||
118 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
119 | */ | ||
120 | #define SA_PROBE SA_ONESHOT | ||
121 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
122 | #define SA_SHIRQ 0x04000000 | ||
123 | #endif | ||
124 | |||
125 | #define SIG_BLOCK 0 /* for blocking signals */ | 111 | #define SIG_BLOCK 0 /* for blocking signals */ |
126 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 112 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
127 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 113 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/asm-sh64/signal.h b/include/asm-sh64/signal.h index 77957e9b92d9..864c94ecc98c 100644 --- a/include/asm-sh64/signal.h +++ b/include/asm-sh64/signal.h | |||
@@ -107,20 +107,6 @@ typedef struct { | |||
107 | #define MINSIGSTKSZ 2048 | 107 | #define MINSIGSTKSZ 2048 |
108 | #define SIGSTKSZ THREAD_SIZE | 108 | #define SIGSTKSZ THREAD_SIZE |
109 | 109 | ||
110 | #ifdef __KERNEL__ | ||
111 | |||
112 | /* | ||
113 | * These values of sa_flags are used only by the kernel as part of the | ||
114 | * irq handling routines. | ||
115 | * | ||
116 | * SA_INTERRUPT is also used by the irq handling routines. | ||
117 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
118 | */ | ||
119 | #define SA_PROBE SA_ONESHOT | ||
120 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
121 | #define SA_SHIRQ 0x04000000 | ||
122 | #endif | ||
123 | |||
124 | #define SIG_BLOCK 0 /* for blocking signals */ | 110 | #define SIG_BLOCK 0 /* for blocking signals */ |
125 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 111 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
126 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 112 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/asm-sparc/signal.h b/include/asm-sparc/signal.h index d8211cb6e6b4..f792e10e704f 100644 --- a/include/asm-sparc/signal.h +++ b/include/asm-sparc/signal.h | |||
@@ -143,7 +143,6 @@ struct sigstack { | |||
143 | #define SA_ONESHOT _SV_RESET | 143 | #define SA_ONESHOT _SV_RESET |
144 | #define SA_INTERRUPT 0x10u | 144 | #define SA_INTERRUPT 0x10u |
145 | #define SA_NOMASK 0x20u | 145 | #define SA_NOMASK 0x20u |
146 | #define SA_SHIRQ 0x40u | ||
147 | #define SA_NOCLDWAIT 0x100u | 146 | #define SA_NOCLDWAIT 0x100u |
148 | #define SA_SIGINFO 0x200u | 147 | #define SA_SIGINFO 0x200u |
149 | 148 | ||
@@ -162,11 +161,6 @@ struct sigstack { | |||
162 | 161 | ||
163 | #ifdef __KERNEL__ | 162 | #ifdef __KERNEL__ |
164 | /* | 163 | /* |
165 | * These values of sa_flags are used only by the kernel as part of the | ||
166 | * irq handling routines. | ||
167 | * | ||
168 | * SA_INTERRUPT is also used by the irq handling routines. | ||
169 | * | ||
170 | * DJHR | 164 | * DJHR |
171 | * SA_STATIC_ALLOC is used for the SPARC system to indicate that this | 165 | * SA_STATIC_ALLOC is used for the SPARC system to indicate that this |
172 | * interrupt handler's irq structure should be statically allocated | 166 | * interrupt handler's irq structure should be statically allocated |
@@ -177,8 +171,6 @@ struct sigstack { | |||
177 | * statically allocated data.. which is NOT GOOD. | 171 | * statically allocated data.. which is NOT GOOD. |
178 | * | 172 | * |
179 | */ | 173 | */ |
180 | #define SA_PROBE SA_ONESHOT | ||
181 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
182 | #define SA_STATIC_ALLOC 0x80 | 174 | #define SA_STATIC_ALLOC 0x80 |
183 | #endif | 175 | #endif |
184 | 176 | ||
diff --git a/include/asm-sparc64/signal.h b/include/asm-sparc64/signal.h index 6428e366c38c..466d021d7038 100644 --- a/include/asm-sparc64/signal.h +++ b/include/asm-sparc64/signal.h | |||
@@ -145,7 +145,6 @@ struct sigstack { | |||
145 | #define SA_ONESHOT _SV_RESET | 145 | #define SA_ONESHOT _SV_RESET |
146 | #define SA_INTERRUPT 0x10u | 146 | #define SA_INTERRUPT 0x10u |
147 | #define SA_NOMASK 0x20u | 147 | #define SA_NOMASK 0x20u |
148 | #define SA_SHIRQ 0x40u | ||
149 | #define SA_NOCLDWAIT 0x100u | 148 | #define SA_NOCLDWAIT 0x100u |
150 | #define SA_SIGINFO 0x200u | 149 | #define SA_SIGINFO 0x200u |
151 | 150 | ||
@@ -165,11 +164,6 @@ struct sigstack { | |||
165 | 164 | ||
166 | #ifdef __KERNEL__ | 165 | #ifdef __KERNEL__ |
167 | /* | 166 | /* |
168 | * These values of sa_flags are used only by the kernel as part of the | ||
169 | * irq handling routines. | ||
170 | * | ||
171 | * SA_INTERRUPT is also used by the irq handling routines. | ||
172 | * | ||
173 | * DJHR | 167 | * DJHR |
174 | * SA_STATIC_ALLOC is used for the SPARC system to indicate that this | 168 | * SA_STATIC_ALLOC is used for the SPARC system to indicate that this |
175 | * interrupt handler's irq structure should be statically allocated | 169 | * interrupt handler's irq structure should be statically allocated |
@@ -180,8 +174,6 @@ struct sigstack { | |||
180 | * statically allocated data.. which is NOT GOOD. | 174 | * statically allocated data.. which is NOT GOOD. |
181 | * | 175 | * |
182 | */ | 176 | */ |
183 | #define SA_PROBE SA_ONESHOT | ||
184 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
185 | #define SA_STATIC_ALLOC 0x80 | 177 | #define SA_STATIC_ALLOC 0x80 |
186 | #endif | 178 | #endif |
187 | 179 | ||
diff --git a/include/asm-v850/signal.h b/include/asm-v850/signal.h index 407db875899c..ec3566c875d9 100644 --- a/include/asm-v850/signal.h +++ b/include/asm-v850/signal.h | |||
@@ -110,21 +110,6 @@ typedef unsigned long sigset_t; | |||
110 | #define MINSIGSTKSZ 2048 | 110 | #define MINSIGSTKSZ 2048 |
111 | #define SIGSTKSZ 8192 | 111 | #define SIGSTKSZ 8192 |
112 | 112 | ||
113 | |||
114 | #ifdef __KERNEL__ | ||
115 | /* | ||
116 | * These values of sa_flags are used only by the kernel as part of the | ||
117 | * irq handling routines. | ||
118 | * | ||
119 | * SA_INTERRUPT is also used by the irq handling routines. | ||
120 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
121 | */ | ||
122 | #define SA_PROBE SA_ONESHOT | ||
123 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
124 | #define SA_SHIRQ 0x04000000 | ||
125 | #endif /* __KERNEL__ */ | ||
126 | |||
127 | |||
128 | #define SIG_BLOCK 0 /* for blocking signals */ | 113 | #define SIG_BLOCK 0 /* for blocking signals */ |
129 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 114 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
130 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 115 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/asm-x86_64/signal.h b/include/asm-x86_64/signal.h index 643a20d73765..4987ad8082ba 100644 --- a/include/asm-x86_64/signal.h +++ b/include/asm-x86_64/signal.h | |||
@@ -116,20 +116,6 @@ typedef unsigned long sigset_t; | |||
116 | #define MINSIGSTKSZ 2048 | 116 | #define MINSIGSTKSZ 2048 |
117 | #define SIGSTKSZ 8192 | 117 | #define SIGSTKSZ 8192 |
118 | 118 | ||
119 | #ifdef __KERNEL__ | ||
120 | |||
121 | /* | ||
122 | * These values of sa_flags are used only by the kernel as part of the | ||
123 | * irq handling routines. | ||
124 | * | ||
125 | * SA_INTERRUPT is also used by the irq handling routines. | ||
126 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
127 | */ | ||
128 | #define SA_PROBE SA_ONESHOT | ||
129 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
130 | #define SA_SHIRQ 0x04000000 | ||
131 | #endif | ||
132 | |||
133 | #define SIG_BLOCK 0 /* for blocking signals */ | 119 | #define SIG_BLOCK 0 /* for blocking signals */ |
134 | #define SIG_UNBLOCK 1 /* for unblocking signals */ | 120 | #define SIG_UNBLOCK 1 /* for unblocking signals */ |
135 | #define SIG_SETMASK 2 /* for setting the signal mask */ | 121 | #define SIG_SETMASK 2 /* for setting the signal mask */ |
diff --git a/include/linux/signal.h b/include/linux/signal.h index 99c97ad026c8..78bfb266e4f7 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h | |||
@@ -9,6 +9,17 @@ | |||
9 | #ifdef __KERNEL__ | 9 | #ifdef __KERNEL__ |
10 | 10 | ||
11 | /* | 11 | /* |
12 | * These values of sa_flags are used only by the kernel as part of the | ||
13 | * irq handling routines. | ||
14 | * | ||
15 | * SA_INTERRUPT is also used by the irq handling routines. | ||
16 | * SA_SHIRQ is for shared interrupt support on PCI and EISA. | ||
17 | */ | ||
18 | #define SA_PROBE SA_ONESHOT | ||
19 | #define SA_SAMPLE_RANDOM SA_RESTART | ||
20 | #define SA_SHIRQ 0x04000000 | ||
21 | |||
22 | /* | ||
12 | * Real Time signals may be queued. | 23 | * Real Time signals may be queued. |
13 | */ | 24 | */ |
14 | 25 | ||