Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 2013 13:59:43 -0400
From:      Ed Maste <emaste@freebsd.org>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Konstantin Belousov <kib@freebsd.org>
Subject:   Re: should_yield problem [Was: svn commit: r251322 - head/sys/kern]
Message-ID:  <CAPyFy2Bd8Vpg4o%2BuNfitRhoe7at96b6JYmCbm37tmG4VO=VMuw@mail.gmail.com>
In-Reply-To: <51D30463.50608@FreeBSD.org>
References:  <201306031736.r53Hain5093431@svn.freebsd.org> <51D30463.50608@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2 July 2013 12:48, Andriy Gapon <avg@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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2Bd8Vpg4o%2BuNfitRhoe7at96b6JYmCbm37tmG4VO=VMuw>