Skip to content

Commit 62148d9

Browse files
committed
m68k: Revive _TIF_* masks
While the core m68k code does not use the _TIF_* masks anymore, there exists generic code that relies on their presence. Fortunately none of that code is used on m68k, currently. Re-add the various _TIF_* masks, which were removed in commit cddafa3 ("m68k/m68knommu: merge MMU and non-MMU thread_info.h"), to avoid future nasty surprises. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Greg Ungerer <gerg@linux-m68k.org> Link: https://lore.kernel.org/r/20200826122923.22821-1-geert@linux-m68k.org
1 parent 5661bcc commit 62148d9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

arch/m68k/include/asm/thread_info.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,12 @@ static inline struct thread_info *current_thread_info(void)
6868
#define TIF_MEMDIE 16 /* is terminating due to OOM killer */
6969
#define TIF_RESTORE_SIGMASK 18 /* restore signal mask in do_signal */
7070

71+
#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
72+
#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
73+
#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
74+
#define _TIF_DELAYED_TRACE (1 << TIF_DELAYED_TRACE)
75+
#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
76+
#define _TIF_MEMDIE (1 << TIF_MEMDIE)
77+
#define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK)
78+
7179
#endif /* _ASM_M68K_THREAD_INFO_H */

0 commit comments

Comments
 (0)