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:
parent
f1a1612fc2
commit
9e3ae31c7a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user