diff options
| -rw-r--r-- | Documentation/userspace-api/rseq.rst | 2 | ||||
| -rw-r--r-- | kernel/rseq.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/userspace-api/rseq.rst b/Documentation/userspace-api/rseq.rst index 29af6c300396..468f6bbe0e25 100644 --- a/Documentation/userspace-api/rseq.rst +++ b/Documentation/userspace-api/rseq.rst @@ -79,7 +79,7 @@ slice extension by setting rseq::slice_ctrl::request to 1. If the thread is interrupted and the interrupt results in a reschedule request in the kernel, then the kernel can grant a time slice extension and return to userspace instead of scheduling out. The length of the extension is -determined by debugfs:rseq/slice_ext_nsec. The default value is 10 usec; which +determined by debugfs:rseq/slice_ext_nsec. The default value is 5 usec; which is the minimum value. It can be incremented to 50 usecs, however doing so can/will affect the minimum scheduling latency. 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); |
