Skip to content

Commit 9de3e4b

Browse files
committed
s390: Add ARCH_HAS_PREEMPT_LAZY support
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 <[email protected]>
1 parent 546d7bd commit 9de3e4b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

arch/s390/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ config S390
8787
select ARCH_HAS_MEMBARRIER_SYNC_CORE
8888
select ARCH_HAS_MEM_ENCRYPT
8989
select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS
90+
select ARCH_HAS_PREEMPT_LAZY
9091
select ARCH_HAS_PTE_SPECIAL
9192
select ARCH_HAS_SCALED_CPUTIME
9293
select ARCH_HAS_SET_DIRECT_MAP

arch/s390/include/asm/thread_info.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,12 @@ void arch_setup_new_exec(void);
6464
#define TIF_NOTIFY_RESUME 0 /* callback before returning to user */
6565
#define TIF_SIGPENDING 1 /* signal pending */
6666
#define TIF_NEED_RESCHED 2 /* rescheduling necessary */
67-
#define TIF_UPROBE 3 /* breakpointed or single-stepping */
68-
#define TIF_GUARDED_STORAGE 4 /* load guarded storage control block */
67+
#define TIF_NEED_RESCHED_LAZY 3 /* lazy rescheduling needed */
68+
#define TIF_UPROBE 4 /* breakpointed or single-stepping */
6969
#define TIF_PATCH_PENDING 5 /* pending live patching update */
7070
#define TIF_PGSTE 6 /* New mm's will use 4K page tables */
7171
#define TIF_NOTIFY_SIGNAL 7 /* signal notifications exist */
72+
#define TIF_GUARDED_STORAGE 8 /* load guarded storage control block */
7273
#define TIF_ISOLATE_BP_GUEST 9 /* Run KVM guests with isolated BP */
7374
#define TIF_PER_TRAP 10 /* Need to handle PER trap on exit to usermode */
7475
#define TIF_31BIT 16 /* 32bit process */
@@ -85,11 +86,12 @@ void arch_setup_new_exec(void);
8586
#define _TIF_NOTIFY_RESUME BIT(TIF_NOTIFY_RESUME)
8687
#define _TIF_SIGPENDING BIT(TIF_SIGPENDING)
8788
#define _TIF_NEED_RESCHED BIT(TIF_NEED_RESCHED)
89+
#define _TIF_NEED_RESCHED_LAZY BIT(TIF_NEED_RESCHED_LAZY)
8890
#define _TIF_UPROBE BIT(TIF_UPROBE)
89-
#define _TIF_GUARDED_STORAGE BIT(TIF_GUARDED_STORAGE)
9091
#define _TIF_PATCH_PENDING BIT(TIF_PATCH_PENDING)
9192
#define _TIF_PGSTE BIT(TIF_PGSTE)
9293
#define _TIF_NOTIFY_SIGNAL BIT(TIF_NOTIFY_SIGNAL)
94+
#define _TIF_GUARDED_STORAGE BIT(TIF_GUARDED_STORAGE)
9395
#define _TIF_ISOLATE_BP_GUEST BIT(TIF_ISOLATE_BP_GUEST)
9496
#define _TIF_PER_TRAP BIT(TIF_PER_TRAP)
9597
#define _TIF_31BIT BIT(TIF_31BIT)

0 commit comments

Comments
 (0)