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
This commit is contained in:
Hans Petter Selasky 2011-11-20 08:36:18 +00:00
parent f1a1612fc2
commit 9e3ae31c7a

View File

@ -333,7 +333,7 @@ msleep_spin(void *ident, struct mtx *mtx, const char *wmesg, int timo)
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)