use saner calculations in should_yield
This is based on feedback from bde. MFC after: 6 days
This commit is contained in:
parent
08f6f58999
commit
55050ab560
@ -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