diff options
author | kib <kib@FreeBSD.org> | 2009-10-01 12:48:35 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-10-01 12:48:35 +0000 |
commit | 75708a4b2132a457cb688745c30d7b6b445d5484 (patch) | |
tree | 0f6ded3b9551247659567d9e360ea167a6f553dc | |
parent | 605a0e085ad8ef30b81a7a29bd9c772cf08aee00 (diff) | |
download | FreeBSD-src-75708a4b2132a457cb688745c30d7b6b445d5484.zip FreeBSD-src-75708a4b2132a457cb688745c30d7b6b445d5484.tar.gz |
Move the annotation for vm_map_startup() immediately before the function.
MFC after: 3 days
-rw-r--r-- | sys/vm/vm_map.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index b5651ef..1166712 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -116,22 +116,6 @@ __FBSDID("$FreeBSD$"); * another, and then marking both regions as copy-on-write. */ -/* - * vm_map_startup: - * - * Initialize the vm_map module. Must be called before - * any other vm_map routines. - * - * Map and entry structures are allocated from the general - * purpose memory pool with some exceptions: - * - * - The kernel map and kmem submap are allocated statically. - * - Kernel map entries are allocated out of a static pool. - * - * These restrictions are necessary since malloc() uses the - * maps and requires map entries. - */ - static struct mtx map_sleep_mtx; static uma_zone_t mapentzone; static uma_zone_t kmapentzone; @@ -176,6 +160,22 @@ static void vmspace_zdtor(void *mem, int size, void *arg); start = end; \ } +/* + * vm_map_startup: + * + * Initialize the vm_map module. Must be called before + * any other vm_map routines. + * + * Map and entry structures are allocated from the general + * purpose memory pool with some exceptions: + * + * - The kernel map and kmem submap are allocated statically. + * - Kernel map entries are allocated out of a static pool. + * + * These restrictions are necessary since malloc() uses the + * maps and requires map entries. + */ + void vm_map_startup(void) { |