Fix bug in r242852 that prevented CPU from becoming idle if kernel built
without SMP support.
This commit is contained in:
parent
5b1723eb26
commit
2fd4047f32
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=243069
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user