summaryrefslogtreecommitdiff
path: root/vm/vm_resident.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-16 02:17:56 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-16 02:19:38 +0200
commit03955afa0a3cc6e9dece39ec631ce3744b1b08ba (patch)
treef60616ba0e3b4bf7d59a7cda1f95f26adf878b7d /vm/vm_resident.c
parent75e34439527edaf9299da07b54c305a5068b3a1a (diff)
yyy vm: turn page queue lock into a general lock
Diffstat (limited to 'vm/vm_resident.c')
-rw-r--r--vm/vm_resident.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/vm_resident.c b/vm/vm_resident.c
index aa99e61..8b10e00 100644
--- a/vm/vm_resident.c
+++ b/vm/vm_resident.c
@@ -118,7 +118,7 @@ vm_offset_t vm_page_fictitious_addr = (vm_offset_t) -1;
*/
queue_head_t vm_page_queue_active;
queue_head_t vm_page_queue_inactive;
-decl_simple_lock_data(,vm_page_queue_lock)
+struct lock vm_page_queue_lock;
int vm_page_active_count;
int vm_page_inactive_count;
int vm_page_wire_count;
@@ -165,7 +165,7 @@ void vm_page_bootstrap(
*/
simple_lock_init(&vm_page_queue_free_lock);
- simple_lock_init(&vm_page_queue_lock);
+ lock_init(&vm_page_queue_lock, FALSE);
vm_page_queue_free = VM_PAGE_NULL;
vm_page_queue_fictitious = VM_PAGE_NULL;