Skip to content

Commit ed2124c

Browse files
axboeMichal Simek
authored andcommitted
microblaze: add support for TIF_NOTIFY_SIGNAL
Wire up TIF_NOTIFY_SIGNAL handling for microblaze. Cc: Michal Simek <[email protected]> Signed-off-by: Jens Axboe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
1 parent e167a59 commit ed2124c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

arch/microblaze/include/asm/thread_info.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ static inline struct thread_info *current_thread_info(void)
107107
#define TIF_NEED_RESCHED 3 /* rescheduling necessary */
108108
/* restore singlestep on return to user mode */
109109
#define TIF_SINGLESTEP 4
110+
#define TIF_NOTIFY_SIGNAL 5 /* signal notifications exist */
110111
#define TIF_MEMDIE 6 /* is terminating due to OOM killer */
111112
#define TIF_SYSCALL_AUDIT 9 /* syscall auditing active */
112113
#define TIF_SECCOMP 10 /* secure computing */
@@ -119,6 +120,7 @@ static inline struct thread_info *current_thread_info(void)
119120
#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
120121
#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
121122
#define _TIF_SINGLESTEP (1 << TIF_SINGLESTEP)
123+
#define _TIF_NOTIFY_SIGNAL (1 << TIF_NOTIFY_SIGNAL)
122124
#define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG)
123125
#define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT)
124126
#define _TIF_SECCOMP (1 << TIF_SECCOMP)

arch/microblaze/kernel/signal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ static void do_signal(struct pt_regs *regs, int in_syscall)
313313

314314
asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall)
315315
{
316-
if (test_thread_flag(TIF_SIGPENDING))
316+
if (test_thread_flag(TIF_SIGPENDING) ||
317+
test_thread_flag(TIF_NOTIFY_SIGNAL))
317318
do_signal(regs, in_syscall);
318319

319320
if (test_thread_flag(TIF_NOTIFY_RESUME))

0 commit comments

Comments
 (0)