summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-02-15 20:01:09 +0000
committeralc <alc@FreeBSD.org>2003-02-15 20:01:09 +0000
commit193a8816758537fdb7f762e49b7c7b0ddf22eb09 (patch)
treee744ece2091ee9e02b13438c8ed3f55cb59334a3 /sys/vm
parent11334c6aebf5a4535ef21a7e30eb5c258c4bc77a (diff)
downloadFreeBSD-src-193a8816758537fdb7f762e49b7c7b0ddf22eb09.zip
FreeBSD-src-193a8816758537fdb7f762e49b7c7b0ddf22eb09.tar.gz
Remove the acquisition and release of Giant around pmap_growkernel().
It's unnecessary for two reasons: (1) Giant is at present already held in such cases and (2) our various implementations of pmap_growkernel() look to be MP safe. (For example, for sparc64 the proof of (2) is trivial.)
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_map.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index a4d6dcc..0882815 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -965,9 +965,7 @@ vm_map_findspace(
if (map == kernel_map) {
vm_offset_t ksize;
if ((ksize = round_page(start + length)) > kernel_vm_end) {
- mtx_lock(&Giant);
pmap_growkernel(ksize);
- mtx_unlock(&Giant);
}
}
return (0);
OpenPOWER on IntegriCloud