From 37a35e4a60c858249bb9cd20af8abeb26d8c6e05 Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Sun, 4 Apr 2004 19:12:56 +0000 Subject: [PATCH] - 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. --- sys/kern/sched_ule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index 2f5ae4de393..f3c1f19b3eb 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -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;