svn commit: r243069 - head/sys/kern

Alexander Motin mav at FreeBSD.org
Thu Nov 15 14:10:51 UTC 2012


Author: mav
Date: Thu Nov 15 14:10:51 2012
New Revision: 243069
URL: http://svnweb.freebsd.org/changeset/base/243069

Log:
  Fix bug in r242852 that prevented CPU from becoming idle if kernel built
  without SMP support.

Modified:
  head/sys/kern/sched_ule.c

Modified: head/sys/kern/sched_ule.c
==============================================================================
--- head/sys/kern/sched_ule.c	Thu Nov 15 07:48:44 2012	(r243068)
+++ head/sys/kern/sched_ule.c	Thu Nov 15 14:10:51 2012	(r243069)
@@ -2636,8 +2636,10 @@ sched_idletd(void *dummy)
 			if (tdq_idled(tdq) == 0)
 				continue;
 		}
-#endif
 		switchcnt = tdq->tdq_switchcnt + tdq->tdq_oldswitchcnt;
+#else
+		oldswitchcnt = switchcnt;
+#endif
 		/*
 		 * If we're switching very frequently, spin while checking
 		 * for load rather than entering a low power state that 


More information about the svn-src-all mailing list