After the support of generic irq entry/exit. powerpc is now ready to
use generic tif bits instead of arch specific ones.

Enable generic tif bits for powerpc arch.

Signed-off-by: Mukesh Kumar Chaurasiya (IBM) <[email protected]>
---
This patch is applicabe over
https://lore.kernel.org/all/961c058f3f3e03045552186c083a68a0fde3f43f.1791975972.git.msucha...@suse.de/

 arch/powerpc/Kconfig                   |  1 +
 arch/powerpc/include/asm/thread_info.h | 36 +++++++++-----------------
 2 files changed, 13 insertions(+), 24 deletions(-)

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 7f7910f38a67..e5527b56159a 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -255,6 +255,7 @@ config PPC
        select HAVE_FUNCTION_GRAPH_TRACER
        select HAVE_FUNCTION_TRACER             if !COMPILE_TEST && (PPC64 || 
(PPC32 && CC_IS_GCC))
        select HAVE_GCC_PLUGINS
+       select HAVE_GENERIC_TIF_BITS
        select HAVE_HARDLOCKUP_DETECTOR_ARCH    if PPC_BOOK3S_64 && SMP
        select HAVE_HARDLOCKUP_DETECTOR_PERF    if PERF_EVENTS && 
HAVE_PERF_EVENTS_NMI
        select HAVE_HW_BREAKPOINT               if PERF_EVENTS && (PPC_BOOK3S 
|| PPC_8xx)
diff --git a/arch/powerpc/include/asm/thread_info.h 
b/arch/powerpc/include/asm/thread_info.h
index 4b7ec1db3034..4df3f4b5bd56 100644
--- a/arch/powerpc/include/asm/thread_info.h
+++ b/arch/powerpc/include/asm/thread_info.h
@@ -93,44 +93,32 @@ void arch_setup_new_exec(void);
 
 #endif /* __ASSEMBLER__ */
 
+#define HAVE_TIF_NEED_RESCHED_LAZY
+
+#include <asm-generic/thread_info_tif.h>
 /*
  * thread information flag bit numbers
  */
-#define TIF_SIGPENDING         1       /* signal pending */
-#define TIF_NEED_RESCHED       2       /* rescheduling necessary */
-#define TIF_NOTIFY_SIGNAL      3       /* signal notifications exist */
-#define TIF_RESTORE_TM         5       /* need to restore TM FP/VEC/VSX */
-#define TIF_PATCH_PENDING      6       /* pending live patching update */
-#define TIF_SINGLESTEP         8       /* singlestepping active */
-#define TIF_NEED_RESCHED_LAZY  9       /* Scheduler driven lazy preemption */
-#define TIF_RESTOREALL         11      /* Restore all regs (implies NOERROR) */
-#define TIF_NOERROR            12      /* Force successful syscall return */
-#define TIF_NOTIFY_RESUME      13      /* callback before returning to user */
-#define TIF_UPROBE             14      /* breakpointed or single-stepping */
-#define TIF_EMULATE_STACK_STORE        16      /* Is an instruction emulation
+#define TIF_RESTORE_TM         16      /* need to restore TM FP/VEC/VSX */
+#define TIF_SINGLESTEP         17      /* singlestepping active */
+#define TIF_RESTOREALL         18      /* Restore all regs (implies NOERROR) */
+#define TIF_NOERROR            19      /* Force successful syscall return */
+#define TIF_EMULATE_STACK_STORE        20      /* Is an instruction emulation
                                                for stack store? */
-#define TIF_MEMDIE             17      /* is terminating due to OOM killer */
 #if defined(CONFIG_PPC64)
-#define TIF_ELF2ABI            18      /* function descriptors must die! */
+#define TIF_ELF2ABI            21      /* function descriptors must die! */
 #endif
-#define TIF_POLLING_NRFLAG     19      /* true if poll_idle() is polling 
TIF_NEED_RESCHED */
-#define TIF_32BIT              20      /* 32 bit binary */
-#define TIF_SYSCALL_RET                21      /* syscall error value set */
+#define TIF_POLLING_NRFLAG     22      /* true if poll_idle() is polling 
TIF_NEED_RESCHED */
+#define TIF_32BIT              23      /* 32 bit binary */
+#define TIF_SYSCALL_RET                24      /* syscall error value set */
 
 /* as above, but as bit values */
-#define _TIF_SIGPENDING                (1<<TIF_SIGPENDING)
-#define _TIF_NEED_RESCHED      (1<<TIF_NEED_RESCHED)
-#define _TIF_NEED_RESCHED_LAZY (1<<TIF_NEED_RESCHED_LAZY)
-#define _TIF_NOTIFY_SIGNAL     (1<<TIF_NOTIFY_SIGNAL)
 #define _TIF_POLLING_NRFLAG    (1<<TIF_POLLING_NRFLAG)
 #define _TIF_32BIT             (1<<TIF_32BIT)
 #define _TIF_RESTORE_TM                (1<<TIF_RESTORE_TM)
-#define _TIF_PATCH_PENDING     (1<<TIF_PATCH_PENDING)
 #define _TIF_SINGLESTEP                (1<<TIF_SINGLESTEP)
 #define _TIF_RESTOREALL                (1<<TIF_RESTOREALL)
 #define _TIF_NOERROR           (1<<TIF_NOERROR)
-#define _TIF_NOTIFY_RESUME     (1<<TIF_NOTIFY_RESUME)
-#define _TIF_UPROBE            (1<<TIF_UPROBE)
 #define _TIF_EMULATE_STACK_STORE       (1<<TIF_EMULATE_STACK_STORE)
 
 #define _TIF_USER_WORK_MASK    (_TIF_SIGPENDING | _TIF_NEED_RESCHED | \
-- 
2.55.0


Reply via email to