mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-30 08:19:09 +00:00
sysctl: Don't pass CTLFLAG_MPSAFE to SYSCTL_STRING
It is redundant. No functional change intended. MFC after: 1 week
This commit is contained in:
parent
0aba5dd2af
commit
969fc09134
@ -92,20 +92,20 @@ SYSCTL_ROOT_NODE(OID_AUTO, regression, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
|
||||
"Regression test MIB");
|
||||
#endif
|
||||
|
||||
SYSCTL_STRING(_kern, OID_AUTO, ident, CTLFLAG_RD|CTLFLAG_MPSAFE,
|
||||
SYSCTL_STRING(_kern, OID_AUTO, ident, CTLFLAG_RD,
|
||||
kern_ident, 0, "Kernel identifier");
|
||||
|
||||
SYSCTL_INT(_kern, KERN_OSREV, osrevision, CTLFLAG_RD|CTLFLAG_CAPRD,
|
||||
SYSCTL_INT(_kern, KERN_OSREV, osrevision, CTLFLAG_RD | CTLFLAG_CAPRD,
|
||||
SYSCTL_NULL_INT_PTR, BSD, "Operating system revision");
|
||||
|
||||
SYSCTL_STRING(_kern, KERN_VERSION, version, CTLFLAG_RD|CTLFLAG_MPSAFE,
|
||||
SYSCTL_STRING(_kern, KERN_VERSION, version, CTLFLAG_RD,
|
||||
version, 0, "Kernel version");
|
||||
|
||||
SYSCTL_STRING(_kern, OID_AUTO, compiler_version, CTLFLAG_RD|CTLFLAG_MPSAFE,
|
||||
SYSCTL_STRING(_kern, OID_AUTO, compiler_version, CTLFLAG_RD,
|
||||
compiler_version, 0, "Version of compiler used to compile kernel");
|
||||
|
||||
SYSCTL_STRING(_kern, KERN_OSTYPE, ostype, CTLFLAG_RD|CTLFLAG_MPSAFE|
|
||||
CTLFLAG_CAPRD, ostype, 0, "Operating system type");
|
||||
SYSCTL_STRING(_kern, KERN_OSTYPE, ostype, CTLFLAG_RD | CTLFLAG_CAPRD,
|
||||
ostype, 0, "Operating system type");
|
||||
|
||||
SYSCTL_INT(_kern, KERN_MAXPROC, maxproc, CTLFLAG_RDTUN | CTLFLAG_NOFETCH,
|
||||
&maxproc, 0, "Maximum number of processes");
|
||||
@ -139,7 +139,7 @@ SYSCTL_INT(_kern, KERN_SAVED_IDS, saved_ids, CTLFLAG_RD|CTLFLAG_CAPRD,
|
||||
|
||||
char kernelname[MAXPATHLEN] = PATH_KERNEL; /* XXX bloat */
|
||||
|
||||
SYSCTL_STRING(_kern, KERN_BOOTFILE, bootfile, CTLFLAG_RW | CTLFLAG_MPSAFE,
|
||||
SYSCTL_STRING(_kern, KERN_BOOTFILE, bootfile, CTLFLAG_RW,
|
||||
kernelname, sizeof kernelname, "Name of kernel file booted");
|
||||
|
||||
#ifdef COMPAT_FREEBSD12
|
||||
@ -456,7 +456,7 @@ SYSCTL_PROC(_kern, KERN_SECURELVL, securelevel,
|
||||
/* Actual kernel configuration options. */
|
||||
extern char kernconfstring[];
|
||||
|
||||
SYSCTL_STRING(_kern, OID_AUTO, conftxt, CTLFLAG_RD | CTLFLAG_MPSAFE,
|
||||
SYSCTL_STRING(_kern, OID_AUTO, conftxt, CTLFLAG_RD,
|
||||
kernconfstring, 0, "Kernel configuration file");
|
||||
#endif
|
||||
|
||||
|
@ -158,7 +158,7 @@ SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD | CTLFLAG_CAPRD,
|
||||
#endif
|
||||
|
||||
char cpu_model[128];
|
||||
SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD | CTLFLAG_CAPRD | CTLFLAG_MPSAFE,
|
||||
SYSCTL_STRING(_hw, HW_MODEL, model, CTLFLAG_RD | CTLFLAG_CAPRD,
|
||||
cpu_model, 0, "Machine model");
|
||||
|
||||
static int hw_clockrate;
|
||||
@ -168,7 +168,7 @@ SYSCTL_INT(_hw, OID_AUTO, clockrate, CTLFLAG_RD,
|
||||
u_int hv_base;
|
||||
u_int hv_high;
|
||||
char hv_vendor[16];
|
||||
SYSCTL_STRING(_hw, OID_AUTO, hv_vendor, CTLFLAG_RD | CTLFLAG_MPSAFE, hv_vendor,
|
||||
SYSCTL_STRING(_hw, OID_AUTO, hv_vendor, CTLFLAG_RD, hv_vendor,
|
||||
0, "Hypervisor vendor");
|
||||
|
||||
static eventhandler_tag tsc_post_tag;
|
||||
|
Loading…
Reference in New Issue
Block a user