Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/conf remove nbuf, nswbuf. cleanup def of AUTONICE(TIME|VAL)



details:   https://anonhg.NetBSD.org/src/rev/48215e2a698d
branches:  trunk
changeset: 473099:48215e2a698d
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu May 20 06:03:01 1999 +0000

description:
remove nbuf, nswbuf. cleanup def of AUTONICE(TIME|VAL)

diffstat:

 sys/conf/param.c |  23 ++++++++---------------
 1 files changed, 8 insertions(+), 15 deletions(-)

diffs (47 lines):

diff -r d383e88c5a98 -r 48215e2a698d sys/conf/param.c
--- a/sys/conf/param.c  Thu May 20 06:01:16 1999 +0000
+++ b/sys/conf/param.c  Thu May 20 06:03:01 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.c,v 1.30 1999/05/20 05:35:28 cgd Exp $   */
+/*     $NetBSD: param.c,v 1.31 1999/05/20 06:03:01 lukem Exp $ */
 
 /*
  * Copyright (c) 1980, 1986, 1989 Regents of the University of California.
@@ -169,12 +169,6 @@
 #endif
 
 /*
- * These are initialized at bootstrap time
- * to values dependent on memory size
- */
-int    nbuf, nswbuf;
-
-/*
  * These have to be allocated somewhere; allocating
  * them here forces loader errors if this file is omitted
  * (if they've been externed everywhere else; hah!).
@@ -188,17 +182,16 @@
  * amount of CPU time expires.  AUTONICETIME is in seconds.
  * AUTONICEVAL is NOT offset by NZERO, i.e. it's between PRIO_MIN and PRIO_MAX.
  */
-#ifdef AUTONICETIME
-int autonicetime = AUTONICETIME;
-#else
-int autonicetime = (60 * 10);  /* 10 minutes */
+#ifndef AUTONICETIME
+#define AUTONICETIME (60 * 10) /* 10 minutes */
 #endif
 
-#ifdef AUTONICEVAL
+#ifndef AUTONICEVAL
+#define AUTONICEVAL 4          /* default + 4 */
+#endif
+
+int autonicetime = AUTONICETIME;
 int autoniceval = AUTONICEVAL;
-#else
-int autoniceval = 4;           /* default + 4 */
-#endif
 
 /*
  * Actual network mbuf sizes (read-only), for netstat.



Home | Main Index | Thread Index | Old Index