Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: add support for TIF_NOTIFY_SIGNAL

Wire up TIF_NOTIFY_SIGNAL handling for microblaze.

Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

+4 -1
+2
arch/microblaze/include/asm/thread_info.h
··· 107 107 #define TIF_NEED_RESCHED 3 /* rescheduling necessary */ 108 108 /* restore singlestep on return to user mode */ 109 109 #define TIF_SINGLESTEP 4 110 + #define TIF_NOTIFY_SIGNAL 5 /* signal notifications exist */ 110 111 #define TIF_MEMDIE 6 /* is terminating due to OOM killer */ 111 112 #define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */ 112 113 #define TIF_SECCOMP 10 /* secure computing */ ··· 120 119 #define _TIF_SIGPENDING (1 << TIF_SIGPENDING) 121 120 #define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED) 122 121 #define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP) 122 + #define _TIF_NOTIFY_SIGNAL (1 << TIF_NOTIFY_SIGNAL) 123 123 #define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG) 124 124 #define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT) 125 125 #define _TIF_SECCOMP (1 << TIF_SECCOMP)
+2 -1
arch/microblaze/kernel/signal.c
··· 313 313 314 314 asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall) 315 315 { 316 - if (test_thread_flag(TIF_SIGPENDING)) 316 + if (test_thread_flag(TIF_SIGPENDING) || 317 + test_thread_flag(TIF_NOTIFY_SIGNAL)) 317 318 do_signal(regs, in_syscall); 318 319 319 320 if (test_thread_flag(TIF_NOTIFY_RESUME))