use saner calculations in should_yield

This is based on feedback from bde.

MFC after:	6 days
This commit is contained in:
Andriy Gapon 2013-11-26 14:00:50 +00:00
parent 08f6f58999
commit 55050ab560

View File

@ -587,7 +587,7 @@ int
should_yield(void)
{
return ((unsigned int)(ticks - curthread->td_swvoltick) >= hogticks);
return ((u_int)ticks - (u_int)curthread->td_swvoltick >= hogticks);
}
void