mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
One more sysctl(9) type-safety that I missed before.
This commit is contained in:
parent
376d34d03a
commit
52c0b557cc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=217370
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user