summary refs log tree commit diff
path: root/arch/nios2/kernel
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-10-09 15:21:21 -0600
committerJens Axboe <axboe@kernel.dk>2020-11-09 08:16:55 -0700
commit42020064274c235d720d9c4b7d9a678b133e59cf (patch)
treef1a2dcb1520bcbc6f41bfa02e1d6240bdabf3109 /arch/nios2/kernel
parente660653cd9f2df470d156c249631f68b9dee51ee (diff)
downloadlinux-42020064274c235d720d9c4b7d9a678b133e59cf.tar.gz
nios32: add support for TIF_NOTIFY_SIGNAL
Wire up TIF_NOTIFY_SIGNAL handling for nios32.

Cc: Ley Foon Tan <ley.foon.tan@intel.com>
Acked-by: Ley Foon Tan <ley.foon.tan@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/nios2/kernel')
-rw-r--r--arch/nios2/kernel/signal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/nios2/kernel/signal.c b/arch/nios2/kernel/signal.c
index cf2dca2ac7c3..2009ae2d3c3b 100644
--- a/arch/nios2/kernel/signal.c
+++ b/arch/nios2/kernel/signal.c
@@ -306,7 +306,8 @@ asmlinkage int do_notify_resume(struct pt_regs *regs)
 	if (!user_mode(regs))
 		return 0;
 
-	if (test_thread_flag(TIF_SIGPENDING)) {
+	if (test_thread_flag(TIF_SIGPENDING) ||
+	    test_thread_flag(TIF_NOTIFY_SIGNAL)) {
 		int restart = do_signal(regs);
 
 		if (unlikely(restart)) {