Date: Thu, 11 Jul 2013 12:42:46 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r253203 - stable/9/sys/kern Message-ID: <201307111242.r6BCgkxs067425@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Thu Jul 11 12:42:46 2013 New Revision: 253203 URL: http://svnweb.freebsd.org/changeset/base/253203 Log: MFC r253077: should_yield: protect from td_swvoltick being uninitialized or too stale Modified: stable/9/sys/kern/kern_synch.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/kern/kern_synch.c ============================================================================== --- stable/9/sys/kern/kern_synch.c Thu Jul 11 09:27:56 2013 (r253202) +++ stable/9/sys/kern/kern_synch.c Thu Jul 11 12:42:46 2013 (r253203) @@ -578,7 +578,7 @@ int should_yield(void) { - return (ticks - curthread->td_swvoltick >= hogticks); + return ((unsigned int)(ticks - curthread->td_swvoltick) >= hogticks); } void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307111242.r6BCgkxs067425>