Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Dec 2011 15:51:15 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228234 - head/sys/kern
Message-ID:  <201112031551.pB3FpF3d046113@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Sat Dec  3 15:51:15 2011
New Revision: 228234
URL: http://svn.freebsd.org/changeset/base/228234

Log:
  Make sure the description of pause() is
  equivalent to its implementation.
  No code change.
  
  Suggested by:	Bruce Evans
  MFC after:	3 days

Modified:
  head/sys/kern/kern_synch.c

Modified: head/sys/kern/kern_synch.c
==============================================================================
--- head/sys/kern/kern_synch.c	Sat Dec  3 15:41:37 2011	(r228233)
+++ head/sys/kern/kern_synch.c	Sat Dec  3 15:51:15 2011	(r228234)
@@ -328,7 +328,8 @@ msleep_spin(void *ident, struct mtx *mtx
  * pause() delays the calling thread by the given number of system ticks.
  * During cold bootup, pause() uses the DELAY() function instead of
  * the tsleep() function to do the waiting. The "timo" argument must be
- * greater than zero.
+ * greater than or equal to zero. A "timo" value of zero is equivalent
+ * to a "timo" value of one.
  */
 int
 pause(const char *wmesg, int timo)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112031551.pB3FpF3d046113>