Date: Sun, 20 Nov 2011 08:36:18 +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: r227749 - head/sys/kern Message-ID: <201111200836.pAK8aIEq082864@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Sun Nov 20 08:36:18 2011 New Revision: 227749 URL: http://svn.freebsd.org/changeset/base/227749 Log: Given that the typical usage of pause() is pause("zzz", hz / N), where N can be greater than hz in some cases, simply ignore a timeout value of zero. Suggested by: Bruce Evans MFC after: 1 week Modified: head/sys/kern/kern_synch.c Modified: head/sys/kern/kern_synch.c ============================================================================== --- head/sys/kern/kern_synch.c Sun Nov 20 08:29:23 2011 (r227748) +++ head/sys/kern/kern_synch.c Sun Nov 20 08:36:18 2011 (r227749) @@ -333,7 +333,7 @@ msleep_spin(void *ident, struct mtx *mtx int pause(const char *wmesg, int timo) { - KASSERT(timo > 0, ("pause: timo must be > 0")); + KASSERT(timo >= 0, ("pause: timo must be >= 0")); /* silently convert invalid timeouts */ if (timo < 1)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111200836.pAK8aIEq082864>