OSDN Git Service

new helper: restore_saved_sigmask()
[uclinux-h8/linux.git] / arch / frv / kernel / signal.c
index 595bf1e..16351cc 100644 (file)
@@ -536,11 +536,7 @@ no_signal:
 
        /* if there's no signal to deliver, we just put the saved sigmask
         * back */
-       if (test_thread_flag(TIF_RESTORE_SIGMASK)) {
-               clear_thread_flag(TIF_RESTORE_SIGMASK);
-               sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
-       }
-
+       restore_saved_sigmask();
 } /* end do_signal() */
 
 /*****************************************************************************/