diff options
author | jhb <jhb@FreeBSD.org> | 2001-08-10 06:37:05 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-08-10 06:37:05 +0000 |
commit | 2ff1c253cdbfd553e53fca698ea48f0fedd1ed13 (patch) | |
tree | a43614b25c6b04cbe646ec4432f620996c2b3993 /sys/vm/vm_page.c | |
parent | bb40f57a7caad930203ee3bf5e653cd8d69e1019 (diff) | |
download | FreeBSD-src-2ff1c253cdbfd553e53fca698ea48f0fedd1ed13.zip FreeBSD-src-2ff1c253cdbfd553e53fca698ea48f0fedd1ed13.tar.gz |
- 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
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r-- | sys/vm/vm_page.c | 26 |
1 files changed, 0 insertions, 26 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). |