summaryrefslogtreecommitdiffstats
path: root/sys/uvm/uvm_init.c
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2009-06-02 23:00:18 +0000
committeroga <oga@openbsd.org>2009-06-02 23:00:18 +0000
commit7937722e7578dca6d249d954d546a75a86649dca (patch)
tree7f1360fd22002b2beafe1bd8dc221f2a8d9faf56 /sys/uvm/uvm_init.c
parentBring interface list handling up to disk and cd behaviour of being (diff)
downloadwireguard-openbsd-7937722e7578dca6d249d954d546a75a86649dca.tar.xz
wireguard-openbsd-7937722e7578dca6d249d954d546a75a86649dca.zip
Instead of the global hash table with the terrible hashfunction and a
global lock, switch the uvm object pages to being kept in a per-object RB_TREE. Right now this is approximately the same speed, but cleaner. When biglock usage is reduced this will improve concurrency due to lock contention.. ok beck@ art@. Thanks to jasper for the speed testing.
Diffstat (limited to 'sys/uvm/uvm_init.c')
-rw-r--r--sys/uvm/uvm_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/uvm/uvm_init.c b/sys/uvm/uvm_init.c
index 192a781a74f..9d606516ee1 100644
--- a/sys/uvm/uvm_init.c
+++ b/sys/uvm/uvm_init.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_init.c,v 1.21 2009/05/02 12:54:42 oga Exp $ */
+/* $OpenBSD: uvm_init.c,v 1.22 2009/06/02 23:00:19 oga Exp $ */
/* $NetBSD: uvm_init.c,v 1.14 2000/06/27 17:29:23 mrg Exp $ */
/*
@@ -148,7 +148,6 @@ uvm_init(void)
* of kernel objects.
*/
- uvm_page_rehash();
uao_create(VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS,
UAO_FLAG_KERNSWAP);