Date: Thu, 15 Nov 2012 14:10:51 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r243069 - head/sys/kern Message-ID: <201211151410.qAFEAp5M095346@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211151410.qAFEAp5M095346>