svn commit: r253203 - stable/9/sys/kern
Andriy Gapon
avg at FreeBSD.org
Thu Jul 11 12:42:46 UTC 2013
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
More information about the svn-src-stable-9
mailing list