]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
s390: Add ARCH_HAS_PREEMPT_LAZY support
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 21 Nov 2024 11:41:08 +0000 (12:41 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Sun, 24 Nov 2024 15:59:42 +0000 (16:59 +0100)
Just add the required TIF bit for ARCH_HAS_PREEMPT_LAZY support.

Shuffle TIF bits to get TIF_NEED_RESCHED_LAZY next to TIF_NEED_RESCHED.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/Kconfig
arch/s390/include/asm/thread_info.h

index a45259d4c0a54620e238bbdbccf0ff044e763f1f..b7e1eec7903e7ec8749142e8786eb6aacccf87ca 100644 (file)
@@ -87,6 +87,7 @@ config S390
        select ARCH_HAS_MEMBARRIER_SYNC_CORE
        select ARCH_HAS_MEM_ENCRYPT
        select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS
+       select ARCH_HAS_PREEMPT_LAZY
        select ARCH_HAS_PTE_SPECIAL
        select ARCH_HAS_SCALED_CPUTIME
        select ARCH_HAS_SET_DIRECT_MAP
index 3802f281eeedc705599891cc4d2d6bb50dc434d7..c33f7144d1b978f612b8c092a4fd03fbacfc059e 100644 (file)
@@ -64,11 +64,12 @@ void arch_setup_new_exec(void);
 #define TIF_NOTIFY_RESUME      0       /* callback before returning to user */
 #define TIF_SIGPENDING         1       /* signal pending */
 #define TIF_NEED_RESCHED       2       /* rescheduling necessary */
-#define TIF_UPROBE             3       /* breakpointed or single-stepping */
-#define TIF_GUARDED_STORAGE    4       /* load guarded storage control block */
+#define TIF_NEED_RESCHED_LAZY  3       /* lazy rescheduling needed */
+#define TIF_UPROBE             4       /* breakpointed or single-stepping */
 #define TIF_PATCH_PENDING      5       /* pending live patching update */
 #define TIF_PGSTE              6       /* New mm's will use 4K page tables */
 #define TIF_NOTIFY_SIGNAL      7       /* signal notifications exist */
+#define TIF_GUARDED_STORAGE    8       /* load guarded storage control block */
 #define TIF_ISOLATE_BP_GUEST   9       /* Run KVM guests with isolated BP */
 #define TIF_PER_TRAP           10      /* Need to handle PER trap on exit to usermode */
 #define TIF_31BIT              16      /* 32bit process */
@@ -85,11 +86,12 @@ void arch_setup_new_exec(void);
 #define _TIF_NOTIFY_RESUME     BIT(TIF_NOTIFY_RESUME)
 #define _TIF_SIGPENDING                BIT(TIF_SIGPENDING)
 #define _TIF_NEED_RESCHED      BIT(TIF_NEED_RESCHED)
+#define _TIF_NEED_RESCHED_LAZY BIT(TIF_NEED_RESCHED_LAZY)
 #define _TIF_UPROBE            BIT(TIF_UPROBE)
-#define _TIF_GUARDED_STORAGE   BIT(TIF_GUARDED_STORAGE)
 #define _TIF_PATCH_PENDING     BIT(TIF_PATCH_PENDING)
 #define _TIF_PGSTE             BIT(TIF_PGSTE)
 #define _TIF_NOTIFY_SIGNAL     BIT(TIF_NOTIFY_SIGNAL)
+#define _TIF_GUARDED_STORAGE   BIT(TIF_GUARDED_STORAGE)
 #define _TIF_ISOLATE_BP_GUEST  BIT(TIF_ISOLATE_BP_GUEST)
 #define _TIF_PER_TRAP          BIT(TIF_PER_TRAP)
 #define _TIF_31BIT             BIT(TIF_31BIT)