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/include/asm/thread_info.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/include/asm/thread_info.h')
-rw-r--r-- | arch/powerpc/include/asm/thread_info.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/thread_info.h b/arch/powerpc/include/asm/thread_info.h index 9665a26a253a..995ab7b80f69 100644 --- a/arch/powerpc/include/asm/thread_info.h +++ b/arch/powerpc/include/asm/thread_info.h | |||
@@ -154,6 +154,13 @@ static inline void set_restore_sigmask(void) | |||
154 | ti->local_flags |= _TLF_RESTORE_SIGMASK; | 154 | ti->local_flags |= _TLF_RESTORE_SIGMASK; |
155 | set_bit(TIF_SIGPENDING, &ti->flags); | 155 | set_bit(TIF_SIGPENDING, &ti->flags); |
156 | } | 156 | } |
157 | |||
158 | #ifdef CONFIG_PPC64 | ||
159 | #define is_32bit_task() (test_thread_flag(TIF_32BIT)) | ||
160 | #else | ||
161 | #define is_32bit_task() (1) | ||
162 | #endif | ||
163 | |||
157 | #endif /* !__ASSEMBLY__ */ | 164 | #endif /* !__ASSEMBLY__ */ |
158 | 165 | ||
159 | #endif /* __KERNEL__ */ | 166 | #endif /* __KERNEL__ */ |