From 5d9c66a3f8fe76b65b02406c551668f4b645abf5 Mon Sep 17 00:00:00 2001 From: alc Date: Sun, 22 Oct 2006 21:18:48 +0000 Subject: The page queues lock is no longer required by vm_page_busy() or vm_page_wakeup(). Reduce or eliminate its use accordingly. --- sys/dev/agp/agp.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys/dev/agp') diff --git a/sys/dev/agp/agp.c b/sys/dev/agp/agp.c index 7fdbb73..3b38641 100644 --- a/sys/dev/agp/agp.c +++ b/sys/dev/agp/agp.c @@ -529,17 +529,13 @@ agp_generic_bind_memory(device_t dev, struct agp_memory *mem, * Bail out. Reverse all the mappings * and unwire the pages. */ - vm_page_lock_queues(); vm_page_wakeup(m); - vm_page_unlock_queues(); for (k = 0; k < i + j; k += AGP_PAGE_SIZE) AGP_UNBIND_PAGE(dev, offset + k); goto bad; } } - vm_page_lock_queues(); vm_page_wakeup(m); - vm_page_unlock_queues(); } VM_OBJECT_UNLOCK(mem->am_obj); -- cgit v1.1