summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2012-11-25 22:24:19 -0500
committerBen Hutchings <ben@decadent.org.uk>2013-03-27 02:41:25 +0000
commitb170d21942749093f0dac17735837728372e8bff (patch)
tree018e9939ac18811a7ba62fe2b16c904abbfac619 /arch/x86
parent80a19debc2f2d398cfa57fae97bc99826748a602 (diff)
downloadlinux-stable-b170d21942749093f0dac17735837728372e8bff.tar.gz
linux-stable-b170d21942749093f0dac17735837728372e8bff.tar.bz2
linux-stable-b170d21942749093f0dac17735837728372e8bff.zip
signal: Define __ARCH_HAS_SA_RESTORER so we know whether to clear sa_restorer
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. Vaguely based on upstream commit 574c4866e33d 'consolidate kernel-side struct sigaction declarations'. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Cc: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/signal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/signal.h b/arch/x86/include/asm/signal.h
index 598457cbd0f8..6cbc795b7c58 100644
--- a/arch/x86/include/asm/signal.h
+++ b/arch/x86/include/asm/signal.h
@@ -125,6 +125,8 @@ typedef unsigned long sigset_t;
extern void do_notify_resume(struct pt_regs *, void *, __u32);
# endif /* __KERNEL__ */
+#define __ARCH_HAS_SA_RESTORER
+
#ifdef __i386__
# ifdef __KERNEL__
struct old_sigaction {