Skip to content

Commit

Permalink
powerpc: get rid of restore_sigmask()
Browse files Browse the repository at this point in the history
... it's just a call of set_current_blocked() now

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jun 1, 2012
1 parent 77097ae commit 17440f1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
9 changes: 0 additions & 9 deletions arch/powerpc/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,6 @@ void __user * get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
return (void __user *)newsp;
}


/*
* Restore the user process's signal mask
*/
void restore_sigmask(sigset_t *set)
{
set_current_blocked(set);
}

static void check_syscall_restart(struct pt_regs *regs, struct k_sigaction *ka,
int has_handler)
{
Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/kernel/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ extern void do_notify_resume(struct pt_regs *regs, unsigned long thread_info_fla

extern void __user * get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
size_t frame_size, int is_32);
extern void restore_sigmask(sigset_t *set);

extern int handle_signal32(unsigned long sig, struct k_sigaction *ka,
siginfo_t *info, sigset_t *oldset,
Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/kernel/signal_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ static int do_setcontext(struct ucontext __user *ucp, struct pt_regs *regs, int
if (!access_ok(VERIFY_READ, mcp, sizeof(*mcp)))
return -EFAULT;
#endif
restore_sigmask(&set);
set_current_blocked(&set);
if (restore_user_regs(regs, mcp, sig))
return -EFAULT;

Expand Down Expand Up @@ -1273,7 +1273,7 @@ long sys_sigreturn(int r3, int r4, int r5, int r6, int r7, int r8,
set.sig[0] = sigctx.oldmask;
set.sig[1] = sigctx._unused[3];
#endif
restore_sigmask(&set);
set_current_blocked(&set);

sr = (struct mcontext __user *)from_user_ptr(sigctx.regs);
addr = sr;
Expand Down
4 changes: 2 additions & 2 deletions arch/powerpc/kernel/signal_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ int sys_swapcontext(struct ucontext __user *old_ctx,

if (__copy_from_user(&set, &new_ctx->uc_sigmask, sizeof(set)))
do_exit(SIGSEGV);
restore_sigmask(&set);
set_current_blocked(&set);
if (restore_sigcontext(regs, NULL, 0, &new_ctx->uc_mcontext))
do_exit(SIGSEGV);

Expand Down Expand Up @@ -364,7 +364,7 @@ int sys_rt_sigreturn(unsigned long r3, unsigned long r4, unsigned long r5,

if (__copy_from_user(&set, &uc->uc_sigmask, sizeof(set)))
goto badframe;
restore_sigmask(&set);
set_current_blocked(&set);
if (restore_sigcontext(regs, NULL, 1, &uc->uc_mcontext))
goto badframe;

Expand Down

0 comments on commit 17440f1

Please sign in to comment.