mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
x86: Add sysctl flag CTLFLAG_TUN to loader tunables
The following sysctl variables are actually loader tunables. Add sysctl flag CTLFLAG_TUN to them so that `sysctl -T` will report them correctly. 1. machdep.idle 2. machdep.idle_apl31 No functional change intended. Reviewed by: kib, imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D42113
This commit is contained in:
parent
95c01e9b32
commit
149b9c234b
|
@ -688,7 +688,7 @@ cpu_idle(int busy)
|
|||
}
|
||||
|
||||
static int cpu_idle_apl31_workaround;
|
||||
SYSCTL_INT(_machdep, OID_AUTO, idle_apl31, CTLFLAG_RW,
|
||||
SYSCTL_INT(_machdep, OID_AUTO, idle_apl31, CTLFLAG_RWTUN | CTLFLAG_NOFETCH,
|
||||
&cpu_idle_apl31_workaround, 0,
|
||||
"Apollo Lake APL31 MWAIT bug workaround");
|
||||
|
||||
|
@ -802,7 +802,7 @@ cpu_idle_sysctl(SYSCTL_HANDLER_ARGS)
|
|||
}
|
||||
|
||||
SYSCTL_PROC(_machdep, OID_AUTO, idle,
|
||||
CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_MPSAFE,
|
||||
CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_MPSAFE,
|
||||
0, 0, cpu_idle_sysctl, "A",
|
||||
"currently selected idle function");
|
||||
|
||||
|
|
Loading…
Reference in a new issue