KEYS: Extend TIF_NOTIFY_RESUME to (almost) all architectures [try #6]
[pandora-kernel.git] / arch / alpha / kernel / signal.c
index df65eaa..04e17c1 100644 (file)
@@ -683,4 +683,9 @@ do_notify_resume(struct pt_regs *regs, struct switch_stack *sw,
 {
        if (thread_info_flags & (_TIF_SIGPENDING | _TIF_RESTORE_SIGMASK))
                do_signal(regs, sw, r0, r19);
+
+       if (thread_info_flags & _TIF_NOTIFY_RESUME) {
+               clear_thread_flag(TIF_NOTIFY_RESUME);
+               tracehook_notify_resume(regs);
+       }
 }