should_yield problem [Was: svn commit: r251322 - head/sys/kern]
emaste at freebsd.org
Tue Jul 2 17:59:44 UTC 2013
On 2 July 2013 12:48, Andriy Gapon <avg at freebsd.org> wrote:
> I am not sure if the originally reported problem was also caused by
> should_yield() or if it was something else. But in either case I think that we
> should fix should_yield. Perhaps (ticks - curthread->td_swvoltick) should be
> cast to unsigned before comparison?
What about just initializing td_swvoltick to ticks at td creation?
More information about the svn-src-head