summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/vm_machdep.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-11-16 23:40:06 +0000
committeralc <alc@FreeBSD.org>2003-11-16 23:40:06 +0000
commitaea6af995e43dee967b6d512c56585ec6be872ad (patch)
tree0b5e45e83bef0c49aa2e3500449fabecdd8cfdc7 /sys/powerpc/aim/vm_machdep.c
parent7aa5c2497a67b36cc05ec3c76dca0423b69c9400 (diff)
downloadFreeBSD-src-aea6af995e43dee967b6d512c56585ec6be872ad.zip
FreeBSD-src-aea6af995e43dee967b6d512c56585ec6be872ad.tar.gz
- Remove unnecessary synchronization from sf_buf_init(). (There is only
one active CPU when sf_buf_init() is performed.)
Diffstat (limited to 'sys/powerpc/aim/vm_machdep.c')
-rw-r--r--sys/powerpc/aim/vm_machdep.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c
index a53a03e..5293ed3 100644
--- a/sys/powerpc/aim/vm_machdep.c
+++ b/sys/powerpc/aim/vm_machdep.c
@@ -246,7 +246,6 @@ sf_buf_init(void *arg)
int i;
mtx_init(&sf_freelist.sf_lock, "sf_bufs list lock", NULL, MTX_DEF);
- mtx_lock(&sf_freelist.sf_lock);
SLIST_INIT(&sf_freelist.sf_head);
sf_base = kmem_alloc_nofault(kernel_map, nsfbufs * PAGE_SIZE);
sf_bufs = malloc(nsfbufs * sizeof(struct sf_buf), M_TEMP,
@@ -256,7 +255,6 @@ sf_buf_init(void *arg)
SLIST_INSERT_HEAD(&sf_freelist.sf_head, &sf_bufs[i], free_list);
}
sf_buf_alloc_want = 0;
- mtx_unlock(&sf_freelist.sf_lock);
}
/*
OpenPOWER on IntegriCloud