summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-08-10 06:37:05 +0000
committerjhb <jhb@FreeBSD.org>2001-08-10 06:37:05 +0000
commit2ff1c253cdbfd553e53fca698ea48f0fedd1ed13 (patch)
treea43614b25c6b04cbe646ec4432f620996c2b3993 /sys/vm
parentbb40f57a7caad930203ee3bf5e653cd8d69e1019 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/vm/vm_page.c26
-rw-r--r--sys/vm/vm_pageout.h2
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));
OpenPOWER on IntegriCloud