use saner calculations in should_yield

This is based on feedback from bde.

MFC after:	6 days
This commit is contained in:
avg 2013-11-26 14:00:50 +00:00
parent 7762fa801f
commit 7d07dd1cba

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