- Use the proper constant in sched_interact_update(). Previously,

SCHED_INTERACT_MAX was used where SCHED_SLP_RUN_MAX was needed.  This was
   causing the interactivity scaler to lose history at a more dramatic rate
   than intended.
This commit is contained in:
jeff 2004-04-04 19:12:56 +00:00
parent 14b099f23f
commit 3f884ddf6b

View File

@ -1043,7 +1043,7 @@ sched_interact_update(struct ksegrp *kg)
* will not bring us back into range. Dividing by two here forces
* us into the range of [3/5 * SCHED_INTERACT_MAX, SCHED_INTERACT_MAX]
*/
if (sum > (SCHED_INTERACT_MAX / 5) * 6) {
if (sum > (SCHED_SLP_RUN_MAX / 5) * 6) {
kg->kg_runtime /= 2;
kg->kg_slptime /= 2;
return;