diff options
| author | thorpej <thorpej@NetBSD.org> | 2003-10-21 22:55:47 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2003-10-21 22:55:47 +0000 |
| commit | 4011fcfefd5fc87f11d246469f14a3dba3f9d2eb (patch) | |
| tree | 35b7c6d89721a96448f0fed5303e5023737ab1cb /sys/conf/param.c | |
| parent | 9dec5da8e89524af4c9bbc038b880c0d701c8be2 (diff) | |
Cache the "adjusted" value of sb_max when sb_max is changed, in order
to avoid doing quad math in sbreserve().
Change suggested by Simon Burge, and code inspired by a similar change
in FreeBSD.
Diffstat (limited to 'sys/conf/param.c')
| -rw-r--r-- | sys/conf/param.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/conf/param.c b/sys/conf/param.c index bd9dd62d904..91264ba03da 100644 --- a/sys/conf/param.c +++ b/sys/conf/param.c @@ -1,4 +1,4 @@ -/* $NetBSD: param.c,v 1.41 2003/08/07 16:30:49 agc Exp $ */ +/* $NetBSD: param.c,v 1.42 2003/10/21 22:55:47 thorpej Exp $ */ /* * Copyright (c) 1980, 1986, 1989 Regents of the University of California. @@ -37,10 +37,9 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: param.c,v 1.41 2003/08/07 16:30:49 agc Exp $"); +__KERNEL_RCSID(0, "$NetBSD: param.c,v 1.42 2003/10/21 22:55:47 thorpej Exp $"); #include "opt_rtc_offset.h" -#include "opt_sb_max.h" #include "opt_sysv.h" #include "opt_sysvparam.h" @@ -108,7 +107,6 @@ int maxproc = NPROC; int desiredvnodes = NVNODE; int maxfiles = MAXFILES; int ncallout = 16 + NPROC; /* size of callwheel (rounded to ^2) */ -u_long sb_max = SB_MAX; /* maximum socket buffer size */ int fscale = FSCALE; /* kernel uses `FSCALE', user uses `fscale' */ /* |
