[PATCH 0/2] Scheduler time extension

From: Prakash Sangappa
Date: Fri Feb 14 2025 - 20:01:03 EST


Follow up to discussion in [1], posting these patches.
They are based on use of the restartable sequences(rseq) for API.

However, currently the discussion is on thread [2] in response to patch
posted by Steven. Mainly about whether this feature should be applicable
only to normal threads(SCHED_OTHER) under PREEMPT_LAZY preemption model
or keep it independent of the preemption method.

[1] https://lore.kernel.org/all/20241113000126.967713-1-prakash.sangappa@xxxxxxxxxx/
[2] https://lore.kernel.org/all/20250131225837.972218232@xxxxxxxxxxx/

Prakash Sangappa (2):
Sched: Scheduler time slice extension
Sched: Add scheduler stat for cpu time slice extension

include/linux/entry-common.h | 11 +++++--
include/linux/sched.h | 20 +++++++++++++
include/uapi/linux/rseq.h | 5 ++++
kernel/entry/common.c | 15 ++++++----
kernel/rseq.c | 57 ++++++++++++++++++++++++++++++++++++
kernel/sched/core.c | 21 +++++++++++++
kernel/sched/debug.c | 1 +
kernel/sched/syscalls.c | 5 ++++
8 files changed, 127 insertions(+), 8 deletions(-)

--
2.43.5