svn commit: r217370 - head/sys/kern
Matthew D Fleming
mdf at FreeBSD.org
Thu Jan 13 18:20:38 UTC 2011
Author: mdf
Date: Thu Jan 13 18:20:37 2011
New Revision: 217370
URL: http://svn.freebsd.org/changeset/base/217370
Log:
One more sysctl(9) type-safety that I missed before.
Modified:
head/sys/kern/sched_4bsd.c
Modified: head/sys/kern/sched_4bsd.c
==============================================================================
--- head/sys/kern/sched_4bsd.c Thu Jan 13 18:20:33 2011 (r217369)
+++ head/sys/kern/sched_4bsd.c Thu Jan 13 18:20:37 2011 (r217370)
@@ -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
More information about the svn-src-head
mailing list