summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2026-01-21 14:25:04 +0100
committerPeter Zijlstra <peterz@infradead.org>2026-01-22 11:11:20 +0100
commit21c0e92d0681fbd10ac024311bd09bca439e0bb1 (patch)
tree19511dbe24cc034bf6563871dd054b906a264f44 /kernel
parente1d7f54900f1e1d3003a85b78cd7105a64203ff7 (diff)
rseq: Lower default slice extension
Change the minimum slice extension to 5 usec. Since slice_test selftest reaches a staggering ~350 nsec extension: Task: slice_test Mean: 350.266 ns Latency (us) | Count ------------------------------ EXPIRED | 238 0 us | 143189 1 us | 167 2 us | 26 3 us | 11 4 us | 28 5 us | 31 6 us | 22 7 us | 23 8 us | 32 9 us | 16 10 us | 35 Lower the minimal (and default) value to 5 usecs -- which is still massive. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20260121143208.073200729@infradead.org
Diffstat (limited to 'kernel')
-rw-r--r--kernel/rseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rseq.c b/kernel/rseq.c
index e423a9bc0a2c..b0973d19f366 100644
--- a/kernel/rseq.c
+++ b/kernel/rseq.c
@@ -517,7 +517,7 @@ struct slice_timer {
void *cookie;
};
-static const unsigned int rseq_slice_ext_nsecs_min = 10 * NSEC_PER_USEC;
+static const unsigned int rseq_slice_ext_nsecs_min = 5 * NSEC_PER_USEC;
static const unsigned int rseq_slice_ext_nsecs_max = 50 * NSEC_PER_USEC;
unsigned int rseq_slice_ext_nsecs __read_mostly = rseq_slice_ext_nsecs_min;
static DEFINE_PER_CPU(struct slice_timer, slice_timer);