summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2025-12-15 19:52:15 +0300
committerPeter Zijlstra <peterz@infradead.org>2026-01-22 13:11:17 +0300
commit99d2592023e5d0a31f5f5a83c694df48239a1e6c (patch)
treef58a294e6f752c04fdf00f9d6c7360380722d4d4 /scripts
parent28621ec2d46c6adf7d33a6facbd83e2fa566bd34 (diff)
downloadlinux-99d2592023e5d0a31f5f5a83c694df48239a1e6c.tar.xz
rseq: Implement sys_rseq_slice_yield()
Provide a new syscall which has the only purpose to yield the CPU after the kernel granted a time slice extension. sched_yield() is not suitable for that because it unconditionally schedules, but the end of the time slice extension is not required to schedule when the task was already preempted. This also allows to have a strict check for termination to catch user space invoking random syscalls including sched_yield() from a time slice extension region. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://patch.msgid.link/20251215155708.929634896@linutronix.de
Diffstat (limited to 'scripts')
-rw-r--r--scripts/syscall.tbl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/syscall.tbl b/scripts/syscall.tbl
index e74868be513c..7a42b32b6577 100644
--- a/scripts/syscall.tbl
+++ b/scripts/syscall.tbl
@@ -411,3 +411,4 @@
468 common file_getattr sys_file_getattr
469 common file_setattr sys_file_setattr
470 common listns sys_listns
+471 common rseq_slice_yield sys_rseq_slice_yield