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().
This commit is contained in:
John Baldwin 2007-02-27 19:40:26 +00:00
parent 1a4435ee0e
commit 8db5fc58ff

View File

@ -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;
}
/*