mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
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
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue