summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_object.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-02-27 19:40:26 +0000
committerjhb <jhb@FreeBSD.org>2007-02-27 19:40:26 +0000
commit54e4ea54b60752c4cfcfa5b3e32aa8f38eb98bf3 (patch)
treeb8363fab96ef569766042a07e60049254e0096c4 /sys/vm/vm_object.c
parentb7c2a59c51e86659120b8337f973988d71347270 (diff)
downloadFreeBSD-src-54e4ea54b60752c4cfcfa5b3e32aa8f38eb98bf3.zip
FreeBSD-src-54e4ea54b60752c4cfcfa5b3e32aa8f38eb98bf3.tar.gz
Use pause() in vm_object_deallocate() to yield the CPU to the lock holder
rather than a tsleep() on &proc0. The only wakeup on &proc0 is intended to awaken the swapper, not random threads blocked in vm_object_deallocate().
Diffstat (limited to 'sys/vm/vm_object.c')
-rw-r--r--sys/vm/vm_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index 2dd28be..c5427ca 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -516,7 +516,7 @@ vm_object_deallocate(vm_object_t object)
* priority than the current thread.
* Let the lower priority thread run.
*/
- tsleep(&proc0, PVM, "vmo_de", 1);
+ pause("vmo_de", 1);
continue;
}
/*
OpenPOWER on IntegriCloud