signal: Define __ARCH_HAS_SA_RESTORER so we know whether to clear sa_restorer
authorBen Hutchings <ben@decadent.org.uk>
Mon, 26 Nov 2012 03:24:19 +0000 (22:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:05 +0000 (09:26 -0700)
commit9dccad6a1590cc1f8c37e066e64155439dfc70cf
treef43fe8abe25829086a49d630604d2c7a4192a070
parentcf0dd5c0a89b0b5d15073fdbbefdaea627e38966
signal: Define __ARCH_HAS_SA_RESTORER so we know whether to clear sa_restorer

Vaguely based on upstream commit 574c4866e33d 'consolidate kernel-side
struct sigaction declarations'.

flush_signal_handlers() needs to know whether sigaction::sa_restorer
is defined, not whether SA_RESTORER is defined.  Define the
__ARCH_HAS_SA_RESTORER macro to indicate this.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 files changed:
arch/arm/include/asm/signal.h
arch/avr32/include/asm/signal.h
arch/cris/include/asm/signal.h
arch/h8300/include/asm/signal.h
arch/m32r/include/asm/signal.h
arch/m68k/include/asm/signal.h
arch/mn10300/include/asm/signal.h
arch/powerpc/include/asm/signal.h
arch/s390/include/asm/signal.h
arch/sparc/include/asm/signal.h
arch/x86/include/asm/signal.h
arch/xtensa/include/asm/signal.h
include/uapi/asm-generic/signal.h