* [PATCH] m68k: Revive _TIF_* masks
@ 2020-08-26 12:29 Geert Uytterhoeven
2020-08-27 0:14 ` Greg Ungerer
2020-09-07 8:50 ` Geert Uytterhoeven
0 siblings, 2 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2020-08-26 12:29 UTC (permalink / raw)
To: Greg Ungerer; +Cc: linux-m68k, linux-kernel, Geert Uytterhoeven
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
cddafa3500fde4a0 ("m68k/m68knommu: merge MMU and non-MMU
thread_info.h"), to avoid future nasty surprises.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
arch/m68k/include/asm/thread_info.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/m68k/include/asm/thread_info.h b/arch/m68k/include/asm/thread_info.h
index 015f1ca383053a39..3689c6718c883d23 100644
--- a/arch/m68k/include/asm/thread_info.h
+++ b/arch/m68k/include/asm/thread_info.h
@@ -68,4 +68,12 @@ static inline struct thread_info *current_thread_info(void)
#define TIF_MEMDIE 16 /* is terminating due to OOM killer */
#define TIF_RESTORE_SIGMASK 18 /* restore signal mask in do_signal */
+#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
+#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
+#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
+#define _TIF_DELAYED_TRACE (1 << TIF_DELAYED_TRACE)
+#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
+#define _TIF_MEMDIE (1 << TIF_MEMDIE)
+#define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK)
+
#endif /* _ASM_M68K_THREAD_INFO_H */
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] m68k: Revive _TIF_* masks
2020-08-26 12:29 [PATCH] m68k: Revive _TIF_* masks Geert Uytterhoeven
@ 2020-08-27 0:14 ` Greg Ungerer
2020-09-07 8:50 ` Geert Uytterhoeven
1 sibling, 0 replies; 3+ messages in thread
From: Greg Ungerer @ 2020-08-27 0:14 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: linux-m68k, linux-kernel
Hi Geert,
On 26/8/20 10:29 pm, Geert Uytterhoeven wrote:
> 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
> cddafa3500fde4a0 ("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>
Regards
Greg
> arch/m68k/include/asm/thread_info.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/arch/m68k/include/asm/thread_info.h b/arch/m68k/include/asm/thread_info.h
> index 015f1ca383053a39..3689c6718c883d23 100644
> --- a/arch/m68k/include/asm/thread_info.h
> +++ b/arch/m68k/include/asm/thread_info.h
> @@ -68,4 +68,12 @@ static inline struct thread_info *current_thread_info(void)
> #define TIF_MEMDIE 16 /* is terminating due to OOM killer */
> #define TIF_RESTORE_SIGMASK 18 /* restore signal mask in do_signal */
>
> +#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
> +#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
> +#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
> +#define _TIF_DELAYED_TRACE (1 << TIF_DELAYED_TRACE)
> +#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
> +#define _TIF_MEMDIE (1 << TIF_MEMDIE)
> +#define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK)
> +
> #endif /* _ASM_M68K_THREAD_INFO_H */
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] m68k: Revive _TIF_* masks
2020-08-26 12:29 [PATCH] m68k: Revive _TIF_* masks Geert Uytterhoeven
2020-08-27 0:14 ` Greg Ungerer
@ 2020-09-07 8:50 ` Geert Uytterhoeven
1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 2020-09-07 8:50 UTC (permalink / raw)
To: Greg Ungerer; +Cc: linux-m68k, Linux Kernel Mailing List
On Wed, Aug 26, 2020 at 2:29 PM Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> 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
> cddafa3500fde4a0 ("m68k/m68knommu: merge MMU and non-MMU
> thread_info.h"), to avoid future nasty surprises.
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Thanks, queueing in the m68k for-v5.10 branch.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-07 8:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-26 12:29 [PATCH] m68k: Revive _TIF_* masks Geert Uytterhoeven
2020-08-27 0:14 ` Greg Ungerer
2020-09-07 8:50 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).