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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258648

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