Author: kib
Date: Wed Jan 19 21:35:48 2011
New Revision: 217604
URL: http://svn.freebsd.org/changeset/base/217604

Log:
  Use CTLFLAG_RDTUN for read-only sysctl that exports tunable.
  
  Reminded by:  pjd
  MFC after:    6 days

Modified:
  head/sys/amd64/amd64/sys_machdep.c

Modified: head/sys/amd64/amd64/sys_machdep.c
==============================================================================
--- head/sys/amd64/amd64/sys_machdep.c  Wed Jan 19 21:34:42 2011        
(r217603)
+++ head/sys/amd64/amd64/sys_machdep.c  Wed Jan 19 21:35:48 2011        
(r217604)
@@ -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
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to