Date: Thu, 16 Jan 2014 14:27:29 +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: r260738 - stable/9/sys/kern Message-ID: <201401161427.s0GERTuh032959@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401161427.s0GERTuh032959>