summaryrefslogtreecommitdiff
path: root/include/linux/entry-common.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2024-10-04 15:47:02 +0300
committerPeter Zijlstra <peterz@infradead.org>2024-11-05 14:55:37 +0300
commit26baa1f1c4bdc34b8d698c1900b407d863ad0e69 (patch)
tree410e81cac79d2f31d7734efc4ac79c3a2003a1d8 /include/linux/entry-common.h
parent0f0d1b8e5010bfe1feeb4d78d137e41946a5370d (diff)
downloadlinux-26baa1f1c4bdc34b8d698c1900b407d863ad0e69.tar.xz
sched: Add TIF_NEED_RESCHED_LAZY infrastructure
Add the basic infrastructure to split the TIF_NEED_RESCHED bit in two. Either bit will cause a resched on return-to-user, but only TIF_NEED_RESCHED will drive IRQ preemption. No behavioural change intended. Suggested-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Link: https://lkml.kernel.org/r/20241007075055.219540785@infradead.org
Diffstat (limited to 'include/linux/entry-common.h')
-rw-r--r--include/linux/entry-common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h
index 1e50cdb83ae5..fc61d0205c97 100644
--- a/include/linux/entry-common.h
+++ b/include/linux/entry-common.h
@@ -64,7 +64,8 @@
#define EXIT_TO_USER_MODE_WORK \
(_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | _TIF_UPROBE | \
- _TIF_NEED_RESCHED | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
+ _TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY | \
+ _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
ARCH_EXIT_TO_USER_MODE_WORK)
/**