use saner calculations in should_yield
This is based on feedback from bde. MFC after: 6 days
This commit is contained in:
parent
7762fa801f
commit
7d07dd1cba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user