Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Should be loadfactor().
details: https://anonhg.NetBSD.org/src/rev/ebceff087185
branches: trunk
changeset: 355137:ebceff087185
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Jul 14 13:23:48 2017 +0000
description:
Should be loadfactor().
diffstat:
sys/kern/sched_4bsd.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 307ba14ccb5b -r ebceff087185 sys/kern/sched_4bsd.c
--- a/sys/kern/sched_4bsd.c Fri Jul 14 13:21:29 2017 +0000
+++ b/sys/kern/sched_4bsd.c Fri Jul 14 13:23:48 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sched_4bsd.c,v 1.32 2017/07/14 13:02:20 maxv Exp $ */
+/* $NetBSD: sched_4bsd.c,v 1.33 2017/07/14 13:23:48 maxv Exp $ */
/*
* Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.32 2017/07/14 13:02:20 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.33 2017/07/14 13:23:48 maxv Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -317,7 +317,8 @@
return;
}
}
- loadfac = 2 * (averunnable.ldavg[0]); /* XXX: should be loadfactor? */
+
+ loadfac = loadfactor(averunnable.ldavg[0]);
l->l_estcpu = decay_cpu(loadfac, l->l_estcpu);
resetpriority(l);
}
Home |
Main Index |
Thread Index |
Old Index