diff options
author | Anton Blanchard <anton@samba.org> | 2009-02-21 20:49:58 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-02-22 23:53:06 -0500 |
commit | a465f9b694bcfa4957d06751c0274ded49421c82 (patch) | |
tree | da91adf23cc0ad89da856dbab7bfe95eff8c46f3 /arch/powerpc/kernel/signal.h | |
parent | 4c4ece3cf8391e842f2c67a4760885e0acb3a461 (diff) |
powerpc: Move is_32bit_task
Move is_32bit_task into asm/thread_info.h, that allows us to test for
32/64bit tasks without an ugly CONFIG_PPC64 ifdef.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/signal.h')
-rw-r--r-- | arch/powerpc/kernel/signal.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/powerpc/kernel/signal.h b/arch/powerpc/kernel/signal.h index b427bf8e1d8f..f1442d69d4ec 100644 --- a/arch/powerpc/kernel/signal.h +++ b/arch/powerpc/kernel/signal.h | |||
@@ -39,22 +39,12 @@ extern unsigned long copy_vsx_from_user(struct task_struct *task, | |||
39 | 39 | ||
40 | #ifdef CONFIG_PPC64 | 40 | #ifdef CONFIG_PPC64 |
41 | 41 | ||
42 | static inline int is_32bit_task(void) | ||
43 | { | ||
44 | return test_thread_flag(TIF_32BIT); | ||
45 | } | ||
46 | |||
47 | extern int handle_rt_signal64(int signr, struct k_sigaction *ka, | 42 | extern int handle_rt_signal64(int signr, struct k_sigaction *ka, |
48 | siginfo_t *info, sigset_t *set, | 43 | siginfo_t *info, sigset_t *set, |
49 | struct pt_regs *regs); | 44 | struct pt_regs *regs); |
50 | 45 | ||
51 | #else /* CONFIG_PPC64 */ | 46 | #else /* CONFIG_PPC64 */ |
52 | 47 | ||
53 | static inline int is_32bit_task(void) | ||
54 | { | ||
55 | return 1; | ||
56 | } | ||
57 | |||
58 | static inline int handle_rt_signal64(int signr, struct k_sigaction *ka, | 48 | static inline int handle_rt_signal64(int signr, struct k_sigaction *ka, |
59 | siginfo_t *info, sigset_t *set, | 49 | siginfo_t *info, sigset_t *set, |
60 | struct pt_regs *regs) | 50 | struct pt_regs *regs) |