diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-12-15 03:42:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-12-15 03:42:58 +0000 |
commit | d196417615cee2b0bef878d8bece937836f17b1f (patch) | |
tree | 2130f8edd515794a485bb5c3c9f5b54a3ca7f11a /sys/uvm/uvm_km.c | |
parent | 30fb6d4ee3269e33a51b16f67d27c473cd3a5e3a (diff) |
export kernel uvm_km_pages_free as vm.kmpagesfree; ok tedu, tested jsg
Diffstat (limited to 'sys/uvm/uvm_km.c')
-rw-r--r-- | sys/uvm/uvm_km.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c index 9f01d2ac560..002455a97df 100644 --- a/sys/uvm/uvm_km.c +++ b/sys/uvm/uvm_km.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_km.c,v 1.65 2007/12/11 15:05:45 tedu Exp $ */ +/* $OpenBSD: uvm_km.c,v 1.66 2007/12/15 03:42:57 deraadt Exp $ */ /* $NetBSD: uvm_km.c,v 1.42 2001/01/14 02:10:01 thorpej Exp $ */ /* @@ -744,6 +744,8 @@ uvm_km_free_poolpage1(struct vm_map *map, vaddr_t addr) #endif /* __HAVE_PMAP_DIRECT */ } +int uvm_km_pages_free; /* number of pages currently on free list */ + #if defined(__HAVE_PMAP_DIRECT) /* * uvm_km_page allocator, __HAVE_PMAP_DIRECT arch @@ -785,7 +787,6 @@ uvm_km_putpage(void *v) struct mutex uvm_km_mtx; int uvm_km_pages_lowat; /* allocate more when reserve drops below this */ -int uvm_km_pages_free; /* number of pages currently on free list */ struct km_page { struct km_page *next; } *uvm_km_pages_head; |