git: 6018f775cebf - stable/13 - Mention kern.timecounter.alloweddeviation in nanosleep.2

From: Piotr Pawel Stefaniak <pstef_at_FreeBSD.org>
Date: Sat, 26 Mar 2022 13:43:03 UTC
The branch stable/13 has been updated by pstef:

URL: https://cgit.FreeBSD.org/src/commit/?id=6018f775cebf15df4309e9544e33123c54d8ef89

commit 6018f775cebf15df4309e9544e33123c54d8ef89
Author:     Piotr Pawel Stefaniak <pstef@FreeBSD.org>
AuthorDate: 2021-10-07 19:14:27 +0000
Commit:     Piotr Pawel Stefaniak <pstef@FreeBSD.org>
CommitDate: 2022-03-26 13:34:20 +0000

    Mention kern.timecounter.alloweddeviation in nanosleep.2
    
    PR:             224837
    Reported by:    Aleksander Derevianko
    
    (cherry picked from commit bf8f6ffcb66a27f498a18e520758ea0d18a6d2de)
    (cherry picked from commit 4f556830dec19ec8821b2ff939ab181192ea4dfc)
---
 lib/libc/sys/nanosleep.2 | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2
index 19ffcf1b7026..eb75c4b1043b 100644
--- a/lib/libc/sys/nanosleep.2
+++ b/lib/libc/sys/nanosleep.2
@@ -30,7 +30,7 @@
 .\"     @(#)sleep.3	8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd March 17, 2017
+.Dd October 7, 2021
 .Dt NANOSLEEP 2
 .Os
 .Sh NAME
@@ -93,6 +93,11 @@ returns immediately and the calling thread is not suspended.
 .Pp
 The suspension time may be longer than requested due to the
 scheduling of other activity by the system.
+It is also subject to the allowed time interval deviation
+specified by the
+.Va kern.timecounter.alloweddeviation
+.Xr sysctl 8
+variable.
 An unmasked signal will terminate the sleep early, regardless of the
 .Dv SA_RESTART
 value on the interrupting signal.