MFC r258648: use saner calculations in should_yield

This commit is contained in:
avg 2014-01-16 14:27:20 +00:00
parent 0882f177bb
commit 564d281d6a

View File

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