sparc: implement is_32bit_task
authorEric Paris <eparis@redhat.com>
Tue, 22 Apr 2014 16:39:51 +0000 (12:39 -0400)
committerEric Paris <eparis@redhat.com>
Tue, 23 Sep 2014 20:21:27 +0000 (16:21 -0400)
commita17c8b54dc738c4fda31e8be0302cd131a04c19f
treeab8ac2099cb03bb85a06f9d7adf5f1f5167c763f
parent01ed102c8522a71d6d05824dd4dc3e17ee9b6d29
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
arch/sparc/include/asm/syscall.h
arch/sparc/include/asm/thread_info_32.h
arch/sparc/include/asm/thread_info_64.h