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.h | |
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.h')
-rw-r--r-- | arch/powerpc/kernel/signal.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/signal.h b/arch/powerpc/kernel/signal.h index c284f75afe77..77efb3d5465a 100644 --- a/arch/powerpc/kernel/signal.h +++ b/arch/powerpc/kernel/signal.h | |||
@@ -24,8 +24,32 @@ extern int handle_rt_signal32(unsigned long sig, struct k_sigaction *ka, | |||
24 | siginfo_t *info, sigset_t *oldset, | 24 | siginfo_t *info, sigset_t *oldset, |
25 | struct pt_regs *regs); | 25 | struct pt_regs *regs); |
26 | 26 | ||
27 | |||
28 | #ifdef CONFIG_PPC64 | ||
29 | |||
30 | static inline int is_32bit_task(void) | ||
31 | { | ||
32 | return test_thread_flag(TIF_32BIT); | ||
33 | } | ||
34 | |||
27 | extern int handle_rt_signal64(int signr, struct k_sigaction *ka, | 35 | extern int handle_rt_signal64(int signr, struct k_sigaction *ka, |
28 | siginfo_t *info, sigset_t *set, | 36 | siginfo_t *info, sigset_t *set, |
29 | struct pt_regs *regs); | 37 | struct pt_regs *regs); |
30 | 38 | ||
39 | #else /* CONFIG_PPC64 */ | ||
40 | |||
41 | static inline int is_32bit_task(void) | ||
42 | { | ||
43 | return 1; | ||
44 | } | ||
45 | |||
46 | static inline int handle_rt_signal64(int signr, struct k_sigaction *ka, | ||
47 | siginfo_t *info, sigset_t *set, | ||
48 | struct pt_regs *regs) | ||
49 | { | ||
50 | return -EFAULT; | ||
51 | } | ||
52 | |||
53 | #endif /* !defined(CONFIG_PPC64) */ | ||
54 | |||
31 | #endif /* _POWERPC_ARCH_SIGNAL_H */ | 55 | #endif /* _POWERPC_ARCH_SIGNAL_H */ |