sparc: Avoid calling sigprocmask()
authorDavid S. Miller <davem@davemloft.net>
Wed, 12 Oct 2011 19:27:35 +0000 (12:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Oct 2011 19:27:35 +0000 (12:27 -0700)
Use set_current_blocked() instead.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/signal32.c
arch/sparc/kernel/signal_32.c
arch/sparc/kernel/signal_64.c

index 3b3a3fc3ce063751426aa8c46835912bc736eea3..2caa556db86dc44818521233c5ba7aad226ca186 100644 (file)
@@ -874,7 +874,7 @@ void do_signal32(sigset_t *oldset, struct pt_regs * regs,
         */
        if (current_thread_info()->status & TS_RESTORE_SIGMASK) {
                current_thread_info()->status &= ~TS_RESTORE_SIGMASK;
-               sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
+               set_current_blocked(&current->saved_sigmask);
        }
 }
 
index 030087a63fb6551ecbfa2a4a1371716b584df0be..8ce247ac04cc0d905abd7d7e1d5de20073ce654a 100644 (file)
@@ -575,7 +575,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
         */
        if (test_thread_flag(TIF_RESTORE_SIGMASK)) {
                clear_thread_flag(TIF_RESTORE_SIGMASK);
-               sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
+               set_current_blocked(&current->saved_sigmask);
        }
 }
 
index f895c407648901f70450b10c6f0658d6ec262b3e..a2b81598d90562695abefa70b8c66ea11832341c 100644 (file)
@@ -595,7 +595,7 @@ static void do_signal(struct pt_regs *regs, unsigned long orig_i0)
         */
        if (current_thread_info()->status & TS_RESTORE_SIGMASK) {
                current_thread_info()->status &= ~TS_RESTORE_SIGMASK;
-               sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
+               set_current_blocked(&current->saved_sigmask);
        }
 }