diff options
author | Eric Paris <eparis@redhat.com> | 2014-04-22 20:39:51 +0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-09-24 00:21:27 +0400 |
commit | a17c8b54dc738c4fda31e8be0302cd131a04c19f (patch) | |
tree | ab8ac2099cb03bb85a06f9d7adf5f1f5167c763f /arch/sparc/include/asm/thread_info_64.h | |
parent | 01ed102c8522a71d6d05824dd4dc3e17ee9b6d29 (diff) | |
download | linux-a17c8b54dc738c4fda31e8be0302cd131a04c19f.tar.xz |
sparc: implement is_32bit_task
We are currently embedding the same check from thread_info.h into
syscall.h thanks to the way syscall_get_arch() was implemented in the
audit tree. Instead create a new function, is_32bit_task() which is
similar to that found on the powerpc arch. This simplifies the
syscall.h code and makes the build/Kconfig requirements much easier
to understand.
Signed-off-by: Eric Paris <eparis@redhat.com
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: sparclinux@vger.kernel.org
Diffstat (limited to 'arch/sparc/include/asm/thread_info_64.h')
-rw-r--r-- | arch/sparc/include/asm/thread_info_64.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/thread_info_64.h b/arch/sparc/include/asm/thread_info_64.h index a5f01ac6d0f1..5a4f6600e624 100644 --- a/arch/sparc/include/asm/thread_info_64.h +++ b/arch/sparc/include/asm/thread_info_64.h @@ -219,6 +219,8 @@ register struct thread_info *current_thread_info_reg asm("g6"); _TIF_NEED_RESCHED) #define _TIF_DO_NOTIFY_RESUME_MASK (_TIF_NOTIFY_RESUME | _TIF_SIGPENDING) +#define is_32bit_task() (test_thread_flag(TIF_32BIT)) + /* * Thread-synchronous status. * |