Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2011 18:20:38 +0000 (UTC)
From:      Matthew D Fleming <mdf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r217370 - head/sys/kern
Message-ID:  <201101131820.p0DIKcMK059445@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101131820.p0DIKcMK059445>