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>
This commit is contained in:
committed by
Benjamin Herrenschmidt
parent
4c4ece3cf8
commit
a465f9b694
@ -154,6 +154,13 @@ static inline void set_restore_sigmask(void)
|
||||
ti->local_flags |= _TLF_RESTORE_SIGMASK;
|
||||
set_bit(TIF_SIGPENDING, &ti->flags);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PPC64
|
||||
#define is_32bit_task() (test_thread_flag(TIF_32BIT))
|
||||
#else
|
||||
#define is_32bit_task() (1)
|
||||
#endif
|
||||
|
||||
#endif /* !__ASSEMBLY__ */
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
Reference in New Issue
Block a user