diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-07-21 00:54:07 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-28 15:47:56 +0200 |
commit | d9fdd87c7f4f9b8180f6c19e605fd009a63dd697 (patch) | |
tree | 0dfcf1aca5633a433a1364f7a34313ada8a84276 /kern/processor.h | |
parent | 6218998e6c0392d988c86407380a841d90e874c8 (diff) |
turn all_psets_lock into a general lock
Diffstat (limited to 'kern/processor.h')
-rw-r--r-- | kern/processor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kern/processor.h b/kern/processor.h index 69ddf87..b52ecda 100644 --- a/kern/processor.h +++ b/kern/processor.h @@ -117,7 +117,10 @@ extern struct processor processor_array[NCPUS]; */ extern queue_head_t all_psets; extern int all_psets_count; -decl_simple_lock_data(extern, all_psets_lock); +extern struct lock all_psets_lock_data; +#define all_psets_lock_init() lock_init(&all_psets_lock_data, FALSE) +#define lock_all_psets() lock_write(&all_psets_lock_data) +#define unlock_all_psets() lock_write_done(&all_psets_lock_data) /* * The lock ordering is: |