diff options
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_page.c | 26 | ||||
-rw-r--r-- | sys/vm/vm_pageout.h | 2 |
2 files changed, 0 insertions, 28 deletions
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). diff --git a/sys/vm/vm_pageout.h b/sys/vm/vm_pageout.h index 306eaf3..bfcfbb1 100644 --- a/sys/vm/vm_pageout.h +++ b/sys/vm/vm_pageout.h @@ -100,9 +100,7 @@ extern int vm_pageout_deficit; extern void pagedaemon_wakeup __P((void)); #define VM_WAIT vm_wait() -#define VM_AWAIT vm_await() extern void vm_wait __P((void)); -extern void vm_await __P((void)); #ifdef _KERNEL void vm_pageout_page __P((vm_page_t, vm_object_t)); |