diff options
author | alc <alc@FreeBSD.org> | 2007-02-05 06:02:55 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2007-02-05 06:02:55 +0000 |
commit | 4881bd38e2f4061efa354e25c1c66cc0275393a7 (patch) | |
tree | 637e68f96e2bfd32a294cf1c8e9174af72387c26 /sys/vm/vm_pageq.c | |
parent | 7925e63ddf2503578b494beaa7b4e98a843ed6d9 (diff) | |
download | FreeBSD-src-4881bd38e2f4061efa354e25c1c66cc0275393a7.zip FreeBSD-src-4881bd38e2f4061efa354e25c1c66cc0275393a7.tar.gz |
Change the free page queue lock from a spin mutex to a default (blocking)
mutex. With the demise of Alpha support, there is no longer a reason for
it to be a spin mutex.
Diffstat (limited to 'sys/vm/vm_pageq.c')
-rw-r--r-- | sys/vm/vm_pageq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_pageq.c b/sys/vm/vm_pageq.c index 85dd9e5..1b3e9a4 100644 --- a/sys/vm/vm_pageq.c +++ b/sys/vm/vm_pageq.c @@ -198,9 +198,9 @@ vm_pageq_add_new_page(vm_paddr_t pa) m->flags = 0; m->pc = (pa >> PAGE_SHIFT) & PQ_COLORMASK; pmap_page_init(m); - mtx_lock_spin(&vm_page_queue_free_mtx); + mtx_lock(&vm_page_queue_free_mtx); vm_pageq_enqueue(m->pc + PQ_FREE, m); - mtx_unlock_spin(&vm_page_queue_free_mtx); + mtx_unlock(&vm_page_queue_free_mtx); } /* |