svn commit: r260738 - stable/9/sys/kern

Andriy Gapon avg at FreeBSD.org
Thu Jan 16 14:27:30 UTC 2014


Author: avg
Date: Thu Jan 16 14:27:29 2014
New Revision: 260738
URL: http://svnweb.freebsd.org/changeset/base/260738

Log:
  MFC r258648: use saner calculations in should_yield

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 Jan 16 14:27:20 2014	(r260737)
+++ stable/9/sys/kern/kern_synch.c	Thu Jan 16 14:27:29 2014	(r260738)
@@ -578,7 +578,7 @@ int
 should_yield(void)
 {
 
-	return ((unsigned int)(ticks - curthread->td_swvoltick) >= hogticks);
+	return ((u_int)ticks - (u_int)curthread->td_swvoltick >= hogticks);
 }
 
 void


More information about the svn-src-stable-9 mailing list