diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2007-06-04 01:15:56 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-06-14 08:29:58 -0400 |
commit | 2f97cd3912428f5044fa7715293a69349fc455fa (patch) | |
tree | e4e3312c600a61b0983ed94f31d3846a853e9461 /arch/powerpc/kernel/signal.c | |
parent | 0edc4ffd0e50d1ab0f387d37457210bc8bf8f8da (diff) |
[POWERPC] Less ifdef's in signal.c/signal.h
This patch moves things around a little bit in the new common signal.c
and signal.h files to remove the last #ifdef in the middle of the
common do_signal().
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/signal.c')
-rw-r--r-- | arch/powerpc/kernel/signal.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/powerpc/kernel/signal.c b/arch/powerpc/kernel/signal.c index 88d8977731ed..c434d6c4e4e6 100644 --- a/arch/powerpc/kernel/signal.c +++ b/arch/powerpc/kernel/signal.c | |||
@@ -16,19 +16,6 @@ | |||
16 | 16 | ||
17 | #include "signal.h" | 17 | #include "signal.h" |
18 | 18 | ||
19 | |||
20 | #ifdef CONFIG_PPC64 | ||
21 | static inline int is_32bit_task(void) | ||
22 | { | ||
23 | return test_thread_flag(TIF_32BIT); | ||
24 | } | ||
25 | #else | ||
26 | static inline int is_32bit_task(void) | ||
27 | { | ||
28 | return 1; | ||
29 | } | ||
30 | #endif | ||
31 | |||
32 | /* | 19 | /* |
33 | * Allocate space for the signal frame | 20 | * Allocate space for the signal frame |
34 | */ | 21 | */ |
@@ -161,10 +148,8 @@ int do_signal(sigset_t *oldset, struct pt_regs *regs) | |||
161 | else | 148 | else |
162 | ret = handle_signal32(signr, &ka, &info, oldset, | 149 | ret = handle_signal32(signr, &ka, &info, oldset, |
163 | regs); | 150 | regs); |
164 | #ifdef CONFIG_PPC64 | ||
165 | } else { | 151 | } else { |
166 | ret = handle_rt_signal64(signr, &ka, &info, oldset, regs); | 152 | ret = handle_rt_signal64(signr, &ka, &info, oldset, regs); |
167 | #endif | ||
168 | } | 153 | } |
169 | 154 | ||
170 | if (ret) { | 155 | if (ret) { |