diff options
author | kib <kib@FreeBSD.org> | 2011-12-16 10:56:16 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-12-16 10:56:16 +0000 |
commit | cfa70889cbd223b93363d3634f8ed901169a5ca6 (patch) | |
tree | 16790b47a7e1f011c399e6142b42726925b76600 /sys/vm/vm_glue.c | |
parent | 8e22f12db25e1dd73b84c5b0735c8f97c2974343 (diff) | |
download | FreeBSD-src-cfa70889cbd223b93363d3634f8ed901169a5ca6.zip FreeBSD-src-cfa70889cbd223b93363d3634f8ed901169a5ca6.tar.gz |
Move kstack_cache_entry into the private header, and make the
stack cache list header accessible outside vm_glue.c.
MFC after: 1 week
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index c552cb7..e4a4bd8 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -77,7 +77,7 @@ __FBSDID("$FreeBSD$"); #include <sys/vmmeter.h> #include <sys/sx.h> #include <sys/sysctl.h> - +#include <sys/_kstack_cache.h> #include <sys/eventhandler.h> #include <sys/kernel.h> #include <sys/ktr.h> @@ -331,12 +331,7 @@ vm_sync_icache(vm_map_t map, vm_offset_t va, vm_offset_t sz) pmap_sync_icache(map->pmap, va, sz); } -struct kstack_cache_entry { - vm_object_t ksobj; - struct kstack_cache_entry *next_ks_entry; -}; - -static struct kstack_cache_entry *kstack_cache; +struct kstack_cache_entry *kstack_cache; static int kstack_cache_size = 128; static int kstacks; static struct mtx kstack_cache_mtx; |