diff options
author | bde <bde@FreeBSD.org> | 1998-07-11 13:06:41 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-11 13:06:41 +0000 |
commit | 0c05d7ae1fbcd4b7756ce7ae1755fd8529971685 (patch) | |
tree | 9481401773092aeb8e2b606ecdf04977cef4f3dd /sys/kern/kern_synch.c | |
parent | 79b54f96f64c57aa61957296f9aeac57874c5807 (diff) | |
download | FreeBSD-src-0c05d7ae1fbcd4b7756ce7ae1755fd8529971685.zip FreeBSD-src-0c05d7ae1fbcd4b7756ce7ae1755fd8529971685.tar.gz |
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.
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r-- | sys/kern/kern_synch.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 99d192b..6fa55d4 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -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 |