RISC-V: un-ifdef vm.kvm_size and vm.kvm_free
Fix formatting and add CTLFLAG_MPSAFE. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D23522
This commit is contained in:
parent
b8f8a6b719
commit
ccfb8acd70
@ -1436,7 +1436,6 @@ pmap_release(pmap_t pmap)
|
||||
vm_page_free(m);
|
||||
}
|
||||
|
||||
#if 0
|
||||
static int
|
||||
kvm_size(SYSCTL_HANDLER_ARGS)
|
||||
{
|
||||
@ -1444,8 +1443,9 @@ kvm_size(SYSCTL_HANDLER_ARGS)
|
||||
|
||||
return sysctl_handle_long(oidp, &ksize, 0, req);
|
||||
}
|
||||
SYSCTL_PROC(_vm, OID_AUTO, kvm_size, CTLTYPE_LONG|CTLFLAG_RD,
|
||||
0, 0, kvm_size, "LU", "Size of KVM");
|
||||
SYSCTL_PROC(_vm, OID_AUTO, kvm_size, CTLTYPE_LONG | CTLFLAG_RD | CTLFLAG_MPSAFE,
|
||||
0, 0, kvm_size, "LU",
|
||||
"Size of KVM");
|
||||
|
||||
static int
|
||||
kvm_free(SYSCTL_HANDLER_ARGS)
|
||||
@ -1454,9 +1454,9 @@ kvm_free(SYSCTL_HANDLER_ARGS)
|
||||
|
||||
return sysctl_handle_long(oidp, &kfree, 0, req);
|
||||
}
|
||||
SYSCTL_PROC(_vm, OID_AUTO, kvm_free, CTLTYPE_LONG|CTLFLAG_RD,
|
||||
0, 0, kvm_free, "LU", "Amount of KVM free");
|
||||
#endif /* 0 */
|
||||
SYSCTL_PROC(_vm, OID_AUTO, kvm_free, CTLTYPE_LONG | CTLFLAG_RD | CTLFLAG_MPSAFE,
|
||||
0, 0, kvm_free, "LU",
|
||||
"Amount of KVM free");
|
||||
|
||||
/*
|
||||
* grow the number of kernel page table entries, if needed
|
||||
|
Loading…
Reference in New Issue
Block a user