diff options
author | alc <alc@FreeBSD.org> | 2008-07-18 17:41:31 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2008-07-18 17:41:31 +0000 |
commit | dba03ac26a2a64c583bf97a4d3e3a57443f09fd7 (patch) | |
tree | 000859a14fdb342b67926081aef1c0f3d8f461c9 /sys/vm/vm_kern.c | |
parent | 08fb11c891294fda58b055001bc6846544a5818f (diff) | |
download | FreeBSD-src-dba03ac26a2a64c583bf97a4d3e3a57443f09fd7.zip FreeBSD-src-dba03ac26a2a64c583bf97a4d3e3a57443f09fd7.tar.gz |
Eliminate stale comments from kmem_malloc().
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r-- | sys/vm/vm_kern.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index 81ca681..9a1ac63 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -261,9 +261,6 @@ kmem_suballoc(vm_map_t parent, vm_offset_t *min, vm_offset_t *max, * We don't worry about expanding the map (adding entries) since entries * for wired maps are statically allocated. * - * NOTE: This routine is not supposed to block if M_NOWAIT is set, but - * I have not verified that it actually does not block. - * * `map' is ONLY allowed to be kmem_map or one of the mbuf submaps to * which we never free. */ @@ -315,15 +312,6 @@ kmem_malloc(map, size, flags) vm_map_insert(map, kmem_object, offset, addr, addr + size, VM_PROT_ALL, VM_PROT_ALL, 0); - /* - * Note: if M_NOWAIT specified alone, allocate from - * interrupt-safe queues only (just the free list). If - * M_USE_RESERVE is also specified, we can also - * allocate from the cache. Neither of the latter two - * flags may be specified from an interrupt since interrupts - * are not allowed to mess with the cache queue. - */ - if ((flags & (M_NOWAIT|M_USE_RESERVE)) == M_NOWAIT) pflags = VM_ALLOC_INTERRUPT | VM_ALLOC_WIRED; else |