diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-10-09 22:35:34 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-12-12 17:17:34 +0100 |
commit | 6d665a4d8b4264def0fbb72da3a500d9904ffe3e (patch) | |
tree | c53ccdf9b6202214fc45820b5c1846253607bbad /arch/c6x/kernel/signal.c | |
parent | alpha: add support for TIF_NOTIFY_SIGNAL (diff) | |
download | linux-6d665a4d8b4264def0fbb72da3a500d9904ffe3e.tar.xz linux-6d665a4d8b4264def0fbb72da3a500d9904ffe3e.zip |
c6x: add support for TIF_NOTIFY_SIGNAL
Wire up TIF_NOTIFY_SIGNAL handling for c6x.
Cc: linux-c6x-dev@linux-c6x.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/c6x/kernel/signal.c')
-rw-r--r-- | arch/c6x/kernel/signal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/c6x/kernel/signal.c b/arch/c6x/kernel/signal.c index a3f15b9a79da..862460c3b183 100644 --- a/arch/c6x/kernel/signal.c +++ b/arch/c6x/kernel/signal.c @@ -13,6 +13,7 @@ #include <linux/syscalls.h> #include <linux/tracehook.h> +#include <asm/asm-offsets.h> #include <asm/ucontext.h> #include <asm/cacheflush.h> @@ -313,7 +314,7 @@ asmlinkage void do_notify_resume(struct pt_regs *regs, u32 thread_info_flags, int syscall) { /* deal with pending signal delivery */ - if (thread_info_flags & (1 << TIF_SIGPENDING)) + if (thread_info_flags & (_TIF_SIGPENDING | _TIF_NOTIFY_SIGNAL)) do_signal(regs, syscall); if (thread_info_flags & (1 << TIF_NOTIFY_RESUME)) |