Include <sys/vmmeter.h> directly instead of relying on it being
authormpi <mpi@openbsd.org>
Tue, 6 May 2014 11:50:13 +0000 (11:50 +0000)
committermpi <mpi@openbsd.org>
Tue, 6 May 2014 11:50:13 +0000 (11:50 +0000)
commit512dfaa60ec59661b8e5334d886db1901c2f9faa
tree56c3abc3a74ed3e4f91d6ecdc32bb6a587a39596
parentf9ea9dbc4b598e4da9e074f60d54815122e8a7cd
Include <sys/vmmeter.h> directly instead of relying on it being
pulled by <uvm/uvm_extern.h> and turn uvm_total() into a private
function.

The preferred way to get memory stats is through the VM_UVMEXP
sysctl(3) since VM_METER is just a wrapper on top of it.  In the
kernel, use `uvmexp' directly instead of uvm_total().

This change does not remove <sys/vmmeter.h> from <uvm/uvm_extern.h>
to give some more time to port maintainers to fix their ports.

ok guenther@ as part of a larger diff.
sys/arch/amd64/amd64/fpu.c
sys/kern/kern_fork.c
sys/miscfs/procfs/procfs_vfsops.c
sys/uvm/uvm_extern.h
sys/uvm/uvm_meter.c