reflect that pg_ps_enabled is a tunable, not just a read-only sysctl
Nod from: jhb
This commit is contained in:
parent
23e62e7654
commit
6cc16fcb4e
@ -183,7 +183,7 @@ static int pat_works = 0; /* Is page attribute table sane? */
|
||||
SYSCTL_NODE(_vm, OID_AUTO, pmap, CTLFLAG_RD, 0, "VM/pmap parameters");
|
||||
|
||||
static int pg_ps_enabled = 1;
|
||||
SYSCTL_INT(_vm_pmap, OID_AUTO, pg_ps_enabled, CTLFLAG_RD, &pg_ps_enabled, 0,
|
||||
SYSCTL_INT(_vm_pmap, OID_AUTO, pg_ps_enabled, CTLFLAG_RDTUN, &pg_ps_enabled, 0,
|
||||
"Are large page mappings enabled?");
|
||||
|
||||
static u_int64_t KPTphys; /* phys addr of kernel level 1 */
|
||||
|
@ -217,7 +217,7 @@ static int pat_works = 0; /* Is page attribute table sane? */
|
||||
SYSCTL_NODE(_vm, OID_AUTO, pmap, CTLFLAG_RD, 0, "VM/pmap parameters");
|
||||
|
||||
static int pg_ps_enabled;
|
||||
SYSCTL_INT(_vm_pmap, OID_AUTO, pg_ps_enabled, CTLFLAG_RD, &pg_ps_enabled, 0,
|
||||
SYSCTL_INT(_vm_pmap, OID_AUTO, pg_ps_enabled, CTLFLAG_RDTUN, &pg_ps_enabled, 0,
|
||||
"Are large page mappings enabled?");
|
||||
|
||||
/*
|
||||
|
@ -279,7 +279,7 @@ static struct mtx PMAP2mutex;
|
||||
|
||||
SYSCTL_NODE(_vm, OID_AUTO, pmap, CTLFLAG_RD, 0, "VM/pmap parameters");
|
||||
static int pg_ps_enabled;
|
||||
SYSCTL_INT(_vm_pmap, OID_AUTO, pg_ps_enabled, CTLFLAG_RD, &pg_ps_enabled, 0,
|
||||
SYSCTL_INT(_vm_pmap, OID_AUTO, pg_ps_enabled, CTLFLAG_RDTUN, &pg_ps_enabled, 0,
|
||||
"Are large page mappings enabled?");
|
||||
|
||||
SYSCTL_INT(_vm_pmap, OID_AUTO, pv_entry_max, CTLFLAG_RD, &pv_entry_max, 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user