summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-10-03 10:49:22 -0600
committerJens Axboe <axboe@kernel.dk>2020-10-17 15:04:36 -0600
commit3c532798ec96b6c2d77706f04ed1d8b566a805df (patch)
treebe05df113944f53ea7d50cdff8ae95c1941c4161 /arch/sh/kernel
parent324bcf54c449c7b5b7024c9fa4549fbaaae1935d (diff)
downloadlinux-stable-3c532798ec96b6c2d77706f04ed1d8b566a805df.tar.gz
linux-stable-3c532798ec96b6c2d77706f04ed1d8b566a805df.tar.bz2
linux-stable-3c532798ec96b6c2d77706f04ed1d8b566a805df.zip
tracehook: clear TIF_NOTIFY_RESUME in tracehook_notify_resume()
All the callers currently do this, clean it up and move the clearing into tracehook_notify_resume() instead. Reviewed-by: Oleg Nesterov <oleg@redhat.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r--arch/sh/kernel/signal_32.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/sh/kernel/signal_32.c b/arch/sh/kernel/signal_32.c
index 4fe3f00137bc..1add47fd31f6 100644
--- a/arch/sh/kernel/signal_32.c
+++ b/arch/sh/kernel/signal_32.c
@@ -502,8 +502,6 @@ asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0,
if (thread_info_flags & _TIF_SIGPENDING)
do_signal(regs, save_r0);
- if (thread_info_flags & _TIF_NOTIFY_RESUME) {
- clear_thread_flag(TIF_NOTIFY_RESUME);
+ if (thread_info_flags & _TIF_NOTIFY_RESUME)
tracehook_notify_resume(regs);
- }
}