Use CTLFLAG_RDTUN for read-only sysctl that exports tunable.

Reminded by:	pjd
MFC after:	6 days
This commit is contained in:
Konstantin Belousov 2011-01-19 21:35:48 +00:00
parent c3f9cbb0e1
commit de64ee1a30

View File

@ -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