Moved definition of fscale from param.c to kern_synch.c where it
should always have been (it has no user-servicable parts even at compile time) and staticized it.
This commit is contained in:
parent
a435d1e61b
commit
bef7db2e66
@ -36,15 +36,13 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)param.c 8.3 (Berkeley) 8/20/94
|
||||
* $Id: param.c,v 1.28 1998/06/21 12:22:35 bde Exp $
|
||||
* $Id: param.c,v 1.29 1998/06/30 21:25:35 phk Exp $
|
||||
*/
|
||||
|
||||
#include "opt_sysvipc.h"
|
||||
#include "opt_param.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
#ifdef SYSVSHM
|
||||
#include <machine/vmparam.h>
|
||||
@ -97,9 +95,6 @@ int maxsockets = MAXSOCKETS;
|
||||
/* allocate 1/4th amount of virtual address space for mbufs XXX */
|
||||
int nmbufs = NMBCLUSTERS * 4;
|
||||
|
||||
int fscale = FSCALE; /* kernel uses `FSCALE', user uses `fscale' */
|
||||
SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, 0, FSCALE, "");
|
||||
|
||||
/*
|
||||
* Values in support of System V compatible shared memory. XXX
|
||||
*/
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_synch.c 8.9 (Berkeley) 5/19/95
|
||||
* $Id: kern_synch.c,v 1.58 1998/06/21 18:02:43 bde Exp $
|
||||
* $Id: kern_synch.c,v 1.59 1998/06/30 21:25:54 phk Exp $
|
||||
*/
|
||||
|
||||
#include "opt_ktrace.h"
|
||||
@ -216,6 +216,10 @@ roundrobin(arg)
|
||||
static fixpt_t ccpu = 0.95122942450071400909 * FSCALE; /* exp(-1/20) */
|
||||
SYSCTL_INT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0, "");
|
||||
|
||||
/* kernel uses `FSCALE', user uses `fscale' */
|
||||
static int fscale = FSCALE;
|
||||
SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, 0, FSCALE, "");
|
||||
|
||||
/*
|
||||
* If `ccpu' is not equal to `exp(-1/20)' and you still want to use the
|
||||
* faster/more-accurate formula, you'll have to estimate CCPU_SHIFT below
|
||||
|
@ -36,15 +36,13 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)param.c 8.3 (Berkeley) 8/20/94
|
||||
* $Id: param.c,v 1.28 1998/06/21 12:22:35 bde Exp $
|
||||
* $Id: param.c,v 1.29 1998/06/30 21:25:35 phk Exp $
|
||||
*/
|
||||
|
||||
#include "opt_sysvipc.h"
|
||||
#include "opt_param.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
#ifdef SYSVSHM
|
||||
#include <machine/vmparam.h>
|
||||
@ -97,9 +95,6 @@ int maxsockets = MAXSOCKETS;
|
||||
/* allocate 1/4th amount of virtual address space for mbufs XXX */
|
||||
int nmbufs = NMBCLUSTERS * 4;
|
||||
|
||||
int fscale = FSCALE; /* kernel uses `FSCALE', user uses `fscale' */
|
||||
SYSCTL_INT(_kern, OID_AUTO, fscale, CTLFLAG_RD, 0, FSCALE, "");
|
||||
|
||||
/*
|
||||
* Values in support of System V compatible shared memory. XXX
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user