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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"

Reply via email to