summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2014-02-01 22:42:45 +0000
committerchristos <christos@NetBSD.org>2014-02-01 22:42:45 +0000
commitab9ca703e90d5a09082eac263a5bad16ae92deae (patch)
tree7189e441a6734283aff020e01c57f79cc4ca4a27 /lib
parentb93a3b964fbe3932af477586d53760928eaf3719 (diff)
mention how HZ affects us
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/nanosleep.216
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/libc/sys/nanosleep.2 b/lib/libc/sys/nanosleep.2
index f25eaf4d3c2..d7bcdb44287 100644
--- a/lib/libc/sys/nanosleep.2
+++ b/lib/libc/sys/nanosleep.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: nanosleep.2,v 1.14 2013/12/25 00:58:50 dholland Exp $
+.\" $NetBSD: nanosleep.2,v 1.15 2014/02/01 22:42:45 christos Exp $
.\"
.\" Copyright (c) 1986, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)sleep.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd October 1, 2012
+.Dd February 1, 2014
.Dt NANOSLEEP 2
.Os
.Sh NAME
@@ -163,3 +163,15 @@ The
.Fn clock_nanosleep
function conforms to
.St -p1003.1j-2000 .
+.Sh BUGS
+The
+.Nx
+kernel is not tickless, so the maximum sleep resolution is determined
+by the value of
+.Dv HZ
+which is by default
+.Dv 100
+in most architectures.
+This means that a request to sleep for less than
+.Dv 10ms
+(1 / HZ seconds), is rounded up to that.