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 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"