diff options
author | Richard Braun <rbraun@sceen.net> | 2013-04-17 22:25:22 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-04-17 22:25:22 +0200 |
commit | 7fbccc553e8d43a19e68d24aaad41978d58b9696 (patch) | |
tree | 88d9268fd4004085aae64797a7caf99cfafaac6a /vm/vm_map.h | |
parent | 0f604cb83c7f3b08cc922addfc4ce819fdb69a49 (diff) |
vm/vm_map: replace spin locks with mutexes
Diffstat (limited to 'vm/vm_map.h')
-rw-r--r-- | vm/vm_map.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vm/vm_map.h b/vm/vm_map.h index 5b4edbc..d4a8eb0 100644 --- a/vm/vm_map.h +++ b/vm/vm_map.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2012 Richard Braun. + * Copyright (c) 2011, 2012, 2013 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,8 +22,8 @@ #define _VM_VM_MAP_H #include <kern/list.h> +#include <kern/mutex.h> #include <kern/rbtree.h> -#include <kern/spinlock.h> #include <kern/stdint.h> #include <machine/pmap.h> @@ -92,7 +92,7 @@ struct vm_map_entry { * Memory map. */ struct vm_map { - struct spinlock lock; + struct mutex lock; struct list entry_list; struct rbtree entry_tree; unsigned int nr_entries; |