mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
[PATCH] Generic sys_rt_sigsuspend()
The TIF_RESTORE_SIGMASK flag allows us to have a generic implementation of sys_rt_sigsuspend() instead of duplicating it for each architecture. This provides such an implementation and makes arch/powerpc use it. It also tidies up the ppc32 sys_sigsuspend() to use TIF_RESTORE_SIGMASK. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
a60fc5190a
commit
150256d8aa
6 changed files with 62 additions and 87 deletions
|
|
@ -444,11 +444,13 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5, type6 arg6
|
|||
#define __ARCH_WANT_SYS_SIGPENDING
|
||||
#define __ARCH_WANT_SYS_SIGPROCMASK
|
||||
#define __ARCH_WANT_SYS_RT_SIGACTION
|
||||
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
|
||||
#ifdef CONFIG_PPC32
|
||||
#define __ARCH_WANT_OLD_STAT
|
||||
#endif
|
||||
#ifdef CONFIG_PPC64
|
||||
#define __ARCH_WANT_COMPAT_SYS_TIME
|
||||
#define __ARCH_WANT_COMPAT_SYS_RT_SIGSUSPEND
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -809,6 +809,7 @@ struct task_struct {
|
|||
struct sighand_struct *sighand;
|
||||
|
||||
sigset_t blocked, real_blocked;
|
||||
sigset_t saved_sigmask; /* To be restored with TIF_RESTORE_SIGMASK */
|
||||
struct sigpending pending;
|
||||
|
||||
unsigned long sas_ss_sp;
|
||||
|
|
|
|||
Loading…
Reference in a new issue