mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Fix a copy-paste bug in NON-KSE case.
This commit is contained in:
parent
c195c7f618
commit
653385756c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164267
@ -589,20 +589,20 @@ schedcpu(void)
|
||||
* stop recalculating its priority until
|
||||
* it wakes up.
|
||||
*/
|
||||
if (ke->ke_cpticks == 0)
|
||||
continue;
|
||||
if (ke->ke_cpticks != 0) {
|
||||
#if (FSHIFT >= CCPU_SHIFT)
|
||||
ke->ke_pctcpu += (realstathz == 100)
|
||||
? ((fixpt_t) ke->ke_cpticks) <<
|
||||
(FSHIFT - CCPU_SHIFT) :
|
||||
100 * (((fixpt_t) ke->ke_cpticks)
|
||||
<< (FSHIFT - CCPU_SHIFT)) / realstathz;
|
||||
ke->ke_pctcpu += (realstathz == 100)
|
||||
? ((fixpt_t) ke->ke_cpticks) <<
|
||||
(FSHIFT - CCPU_SHIFT) :
|
||||
100 * (((fixpt_t) ke->ke_cpticks)
|
||||
<< (FSHIFT - CCPU_SHIFT)) / realstathz;
|
||||
#else
|
||||
ke->ke_pctcpu += ((FSCALE - ccpu) *
|
||||
(ke->ke_cpticks *
|
||||
FSCALE / realstathz)) >> FSHIFT;
|
||||
ke->ke_pctcpu += ((FSCALE - ccpu) *
|
||||
(ke->ke_cpticks *
|
||||
FSCALE / realstathz)) >> FSHIFT;
|
||||
#endif
|
||||
ke->ke_cpticks = 0;
|
||||
ke->ke_cpticks = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user