use MCS locks in physical memory allocator

This commit is contained in:
Balazs Gerofi
2016-12-17 14:21:44 +09:00
parent 9635a628a9
commit 701cdcdab1
2 changed files with 28 additions and 25 deletions

View File

@@ -36,7 +36,7 @@ struct ihk_page_allocator_desc {
unsigned int count;
unsigned int flag;
unsigned int shift;
ihk_spinlock_t lock;
mcs_lock_node_t lock;
struct list_head list;
unsigned long map[0];