mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +00:00
cam_iosched: use tunable flag and make a bool really a bool
kern.cam.do_dynamic_iosched is really a bool, so change its type to bool. While I'm here, also use the CTLFLAG_TUN flag instead of a separate tunable line for it and kern.cam.iosched_alpha_bits. MFC After: 1 week Sponsored by: Netflix
This commit is contained in:
parent
431ddd9436
commit
a065ccb280
@ -70,9 +70,8 @@ static MALLOC_DEFINE(M_CAMSCHED, "CAM I/O Scheduler",
|
||||
|
||||
#ifdef CAM_IOSCHED_DYNAMIC
|
||||
|
||||
static int do_dynamic_iosched = 1;
|
||||
TUNABLE_INT("kern.cam.do_dynamic_iosched", &do_dynamic_iosched);
|
||||
SYSCTL_INT(_kern_cam, OID_AUTO, do_dynamic_iosched, CTLFLAG_RD,
|
||||
static bool do_dynamic_iosched = 1;
|
||||
SYSCTL_BOOL(_kern_cam, OID_AUTO, do_dynamic_iosched, CTLFLAG_RD | CTLFLAG_TUN,
|
||||
&do_dynamic_iosched, 1,
|
||||
"Enable Dynamic I/O scheduler optimizations.");
|
||||
|
||||
@ -97,8 +96,7 @@ SYSCTL_INT(_kern_cam, OID_AUTO, do_dynamic_iosched, CTLFLAG_RD,
|
||||
* Note: See computation of EMA and EMVAR for acceptable ranges of alpha.
|
||||
*/
|
||||
static int alpha_bits = 9;
|
||||
TUNABLE_INT("kern.cam.iosched_alpha_bits", &alpha_bits);
|
||||
SYSCTL_INT(_kern_cam, OID_AUTO, iosched_alpha_bits, CTLFLAG_RW,
|
||||
SYSCTL_INT(_kern_cam, OID_AUTO, iosched_alpha_bits, CTLFLAG_RW | CTLFLAG_TUN,
|
||||
&alpha_bits, 1,
|
||||
"Bits in EMA's alpha.");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user