From 2ff1c253cdbfd553e53fca698ea48f0fedd1ed13 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 10 Aug 2001 06:37:05 +0000 Subject: - Remove asleep(), await(), and M_ASLEEP. - Callers of asleep() and await() have been converted to calling tsleep(). The only caller outside of M_ASLEEP was the ata driver, which called both asleep() and await() with spl-raised, so there was no need for the asleep() and await() pair. M_ASLEEP was unused. Reviewed by: jasone, peter --- sys/vm/vm_page.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'sys/vm/vm_page.c') diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index b3eb945..d9f3528 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -988,32 +988,6 @@ vm_wait(void) } /* - * vm_await: (also see VM_AWAIT macro) - * - * asleep on an event that will signal when free pages are available - * for allocation. - */ - -void -vm_await(void) -{ - int s; - - s = splvm(); - if (curproc == pageproc) { - vm_pageout_pages_needed = 1; - asleep(&vm_pageout_pages_needed, PSWP, "vmwait", 0); - } else { - if (!vm_pages_needed) { - vm_pages_needed++; - wakeup(&vm_pages_needed); - } - asleep(&cnt.v_free_count, PVM, "vmwait", 0); - } - splx(s); -} - -/* * vm_page_activate: * * Put the specified page on the active list (if appropriate). -- cgit v1.1