summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-07-21 23:22:49 +0000
committeralc <alc@FreeBSD.org>2006-07-21 23:22:49 +0000
commitb5b274360a3812cdb97291613b347d2d3708a69f (patch)
treeeae61cb5300fcf10fa3362df8cea2c0797332c3b /sys/vm/vm_map.c
parent9d70629cbaaea9865d9f6ec1bac456ba1a85d373 (diff)
downloadFreeBSD-src-b5b274360a3812cdb97291613b347d2d3708a69f.zip
FreeBSD-src-b5b274360a3812cdb97291613b347d2d3708a69f.tar.gz
Retire debug.mpsafevm. None of the architectures supported in CVS require
it any longer.
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index da222d7..ff586f2 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -2195,11 +2195,9 @@ vm_map_sync(
}
}
- if (invalidate) {
- VM_LOCK_GIANT();
+ if (invalidate)
pmap_remove(map->pmap, start, end);
- VM_UNLOCK_GIANT();
- }
+
/*
* Make a second pass, cleaning/uncaching pages from the indicated
* objects as we go.
@@ -2363,11 +2361,7 @@ vm_map_delete(vm_map_t map, vm_offset_t start, vm_offset_t end)
vm_map_entry_unwire(map, entry);
}
- if (!map->system_map)
- VM_LOCK_GIANT();
pmap_remove(map->pmap, entry->start, entry->end);
- if (!map->system_map)
- VM_UNLOCK_GIANT();
/*
* Delete the entry (which may delete the object) only after
OpenPOWER on IntegriCloud