One more sysctl(9) type-safety that I missed before.

This commit is contained in:
Matthew D Fleming 2011-01-13 18:20:37 +00:00
parent 376d34d03a
commit 52c0b557cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217370

View File

@ -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