Fix bug in r242852 that prevented CPU from becoming idle if kernel built

without SMP support.
This commit is contained in:
Alexander Motin 2012-11-15 14:10:51 +00:00
parent 5b1723eb26
commit 2fd4047f32

View File

@ -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