summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2011-01-13 18:20:37 +0000
committermdf <mdf@FreeBSD.org>2011-01-13 18:20:37 +0000
commitdf31bf2268c7be79bdd68cf4c85e37f16ad16e81 (patch)
tree3512892937e3fdc7b5e075282a90310e5de8ef21 /sys/kern
parentc6121061dca348489bf5f45ce0cd136f6aca9abb (diff)
downloadFreeBSD-src-df31bf2268c7be79bdd68cf4c85e37f16ad16e81.zip
FreeBSD-src-df31bf2268c7be79bdd68cf4c85e37f16ad16e81.tar.gz
One more sysctl(9) type-safety that I missed before.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sched_4bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 0dc2973..d88b230 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -429,7 +429,7 @@ maybe_preempt(struct thread *td)
/* decay 95% of `ts_pctcpu' in 60 seconds; see CCPU_SHIFT before changing */
static fixpt_t ccpu = 0.95122942450071400909 * FSCALE; /* exp(-1/20) */
-SYSCTL_INT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0, "");
+SYSCTL_UINT(_kern, OID_AUTO, ccpu, CTLFLAG_RD, &ccpu, 0, "");
/*
* If `ccpu' is not equal to `exp(-1/20)' and you still want to use the
OpenPOWER on IntegriCloud