Date: Thu, 16 Jan 2014 14:27:20 +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-10@freebsd.org Subject: svn commit: r260737 - stable/10/sys/kern Message-ID: <201401161427.s0GERKRO032905@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Thu Jan 16 14:27:20 2014 New Revision: 260737 URL: http://svnweb.freebsd.org/changeset/base/260737 Log: MFC r258648: use saner calculations in should_yield Modified: stable/10/sys/kern/kern_synch.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/kern_synch.c ============================================================================== --- stable/10/sys/kern/kern_synch.c Thu Jan 16 14:24:44 2014 (r260736) +++ stable/10/sys/kern/kern_synch.c Thu Jan 16 14:27:20 2014 (r260737) @@ -588,7 +588,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.s0GERKRO032905>