diff options
author | alc <alc@FreeBSD.org> | 2004-08-14 18:57:41 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-08-14 18:57:41 +0000 |
commit | 8e661e10f67b38842e6d72bfb13d79cdbca3d651 (patch) | |
tree | 7a58409c0c6fec8e8791b2b3c89f0cc2d24d326f /sys/vm/vm_map.c | |
parent | 04319f388a5f6812427146e66ea4efef65fd0c26 (diff) | |
download | FreeBSD-src-8e661e10f67b38842e6d72bfb13d79cdbca3d651.zip FreeBSD-src-8e661e10f67b38842e6d72bfb13d79cdbca3d651.tar.gz |
Remove spl calls.
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r-- | sys/vm/vm_map.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 0676155..b96d8ce 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -1090,19 +1090,13 @@ vm_map_find(vm_map_t map, vm_object_t object, vm_ooffset_t offset, vm_prot_t max, int cow) { vm_offset_t start; - int result, s = 0; + int result; start = *addr; - - if (map == kmem_map) - s = splvm(); - vm_map_lock(map); if (find_space) { if (vm_map_findspace(map, start, length, addr)) { vm_map_unlock(map); - if (map == kmem_map) - splx(s); return (KERN_NO_SPACE); } start = *addr; @@ -1110,10 +1104,6 @@ vm_map_find(vm_map_t map, vm_object_t object, vm_ooffset_t offset, result = vm_map_insert(map, object, offset, start, start + length, prot, max, cow); vm_map_unlock(map); - - if (map == kmem_map) - splx(s); - return (result); } @@ -2314,19 +2304,12 @@ vm_map_delete(vm_map_t map, vm_offset_t start, vm_offset_t end) int vm_map_remove(vm_map_t map, vm_offset_t start, vm_offset_t end) { - int result, s = 0; - - if (map == kmem_map) - s = splvm(); + int result; vm_map_lock(map); VM_MAP_RANGE_CHECK(map, start, end); result = vm_map_delete(map, start, end); vm_map_unlock(map); - - if (map == kmem_map) - splx(s); - return (result); } |