From de64ee1a301002a93c86571d7c5992253c23f155 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Wed, 19 Jan 2011 21:35:48 +0000 Subject: [PATCH] Use CTLFLAG_RDTUN for read-only sysctl that exports tunable. Reminded by: pjd MFC after: 6 days --- sys/amd64/amd64/sys_machdep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/sys_machdep.c b/sys/amd64/amd64/sys_machdep.c index 0fc8413a7bcc..001651ba5283 100644 --- a/sys/amd64/amd64/sys_machdep.c +++ b/sys/amd64/amd64/sys_machdep.c @@ -62,8 +62,8 @@ __FBSDID("$FreeBSD$"); #define MAX_LD 8192 int max_ldt_segment = 1024; -SYSCTL_INT(_machdep, OID_AUTO, max_ldt_segment, CTLFLAG_RD, &max_ldt_segment, - 0, +SYSCTL_INT(_machdep, OID_AUTO, max_ldt_segment, CTLFLAG_RDTUN, + &max_ldt_segment, 0, "Maximum number of allowed LDT segments in the single address space"); static void