diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/sparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index e0a3fe48aa37..c7a2b3a0e46b 100644 --- a/mm/sparse.c +++ b/mm/sparse.c | |||
@@ -45,7 +45,7 @@ static struct mem_section *sparse_index_alloc(int nid) | |||
45 | 45 | ||
46 | static int sparse_index_init(unsigned long section_nr, int nid) | 46 | static int sparse_index_init(unsigned long section_nr, int nid) |
47 | { | 47 | { |
48 | static spinlock_t index_init_lock = SPIN_LOCK_UNLOCKED; | 48 | static DEFINE_SPINLOCK(index_init_lock); |
49 | unsigned long root = SECTION_NR_TO_ROOT(section_nr); | 49 | unsigned long root = SECTION_NR_TO_ROOT(section_nr); |
50 | struct mem_section *section; | 50 | struct mem_section *section; |
51 | int ret = 0; | 51 | int ret = 0; |