diff options
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: |