Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Revert rev1.26. l_estcpu is increased by only one c...
details: https://anonhg.NetBSD.org/src/rev/0b470c552ae2
branches: trunk
changeset: 355135:0b470c552ae2
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Jul 14 13:02:20 2017 +0000
description:
Revert rev1.26. l_estcpu is increased by only one cpu, not all of them.
diffstat:
sys/kern/sched_4bsd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 97c1f42de07c -r 0b470c552ae2 sys/kern/sched_4bsd.c
--- a/sys/kern/sched_4bsd.c Fri Jul 14 12:27:55 2017 +0000
+++ b/sys/kern/sched_4bsd.c Fri Jul 14 13:02:20 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sched_4bsd.c,v 1.31 2017/07/08 15:15:43 maxv Exp $ */
+/* $NetBSD: sched_4bsd.c,v 1.32 2017/07/14 13:02:20 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.31 2017/07/08 15:15:43 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sched_4bsd.c,v 1.32 2017/07/14 13:02:20 maxv Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -250,7 +250,7 @@
*/
/* See calculations above */
-#define loadfactor(loadavg) (2 * (loadavg) / ncpu)
+#define loadfactor(loadavg) (2 * (loadavg))
static fixpt_t
decay_cpu(fixpt_t loadfac, fixpt_t estcpu)
Home |
Main Index |
Thread Index |
Old Index