aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/kernel/signal.c')
-rw-r--r--arch/m68k/kernel/signal.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/arch/m68k/kernel/signal.c b/arch/m68k/kernel/signal.c
index d8f6960e8fd9..d9f3d1900eed 100644
--- a/arch/m68k/kernel/signal.c
+++ b/arch/m68k/kernel/signal.c
@@ -43,6 +43,7 @@
43#include <linux/tty.h> 43#include <linux/tty.h>
44#include <linux/binfmts.h> 44#include <linux/binfmts.h>
45#include <linux/module.h> 45#include <linux/module.h>
46#include <linux/tracehook.h>
46 47
47#include <asm/setup.h> 48#include <asm/setup.h>
48#include <asm/uaccess.h> 49#include <asm/uaccess.h>
@@ -1154,7 +1155,7 @@ handle_signal(int sig, struct k_sigaction *ka, siginfo_t *info,
1154 * want to handle. Thus you cannot kill init even with a SIGKILL even by 1155 * want to handle. Thus you cannot kill init even with a SIGKILL even by
1155 * mistake. 1156 * mistake.
1156 */ 1157 */
1157asmlinkage void do_signal(struct pt_regs *regs) 1158static void do_signal(struct pt_regs *regs)
1158{ 1159{
1159 siginfo_t info; 1160 siginfo_t info;
1160 struct k_sigaction ka; 1161 struct k_sigaction ka;
@@ -1186,3 +1187,15 @@ asmlinkage void do_signal(struct pt_regs *regs)
1186 sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL); 1187 sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
1187 } 1188 }
1188} 1189}
1190
1191void do_notify_resume(struct pt_regs *regs)
1192{
1193 if (test_thread_flag(TIF_SIGPENDING))
1194 do_signal(regs);
1195
1196 if (test_and_clear_thread_flag(TIF_NOTIFY_RESUME)) {
1197 tracehook_notify_resume(regs);
1198 if (current->replacement_session_keyring)
1199 key_replace_session_keyring();
1200 }
1201}