Module Name:    src
Committed By:   maxv
Date:           Fri Jul 14 13:02:20 UTC 2017

Modified Files:
        src/sys/kern: sched_4bsd.c

Log Message:
Revert rev1.26. l_estcpu is increased by only one cpu, not all of them.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/kern/sched_4bsd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/sched_4bsd.c
diff -u src/sys/kern/sched_4bsd.c:1.31 src/sys/kern/sched_4bsd.c:1.32
--- src/sys/kern/sched_4bsd.c:1.31	Sat Jul  8 15:15:43 2017
+++ src/sys/kern/sched_4bsd.c	Fri Jul 14 13:02:20 2017
@@ -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 @@ sched_tick(struct cpu_info *ci)
  */
 
 /* 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)

Reply via email to