diff options
Diffstat (limited to 'mm/sparse.c')
-rw-r--r-- | mm/sparse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/sparse.c b/mm/sparse.c index e0a3fe48aa37..86c52ab80878 100644 --- a/mm/sparse.c +++ b/mm/sparse.c | |||
@@ -1,7 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * sparse memory mappings. | 2 | * sparse memory mappings. |
3 | */ | 3 | */ |
4 | #include <linux/config.h> | ||
5 | #include <linux/mm.h> | 4 | #include <linux/mm.h> |
6 | #include <linux/mmzone.h> | 5 | #include <linux/mmzone.h> |
7 | #include <linux/bootmem.h> | 6 | #include <linux/bootmem.h> |
@@ -45,7 +44,7 @@ static struct mem_section *sparse_index_alloc(int nid) | |||
45 | 44 | ||
46 | static int sparse_index_init(unsigned long section_nr, int nid) | 45 | static int sparse_index_init(unsigned long section_nr, int nid) |
47 | { | 46 | { |
48 | static spinlock_t index_init_lock = SPIN_LOCK_UNLOCKED; | 47 | static DEFINE_SPINLOCK(index_init_lock); |
49 | unsigned long root = SECTION_NR_TO_ROOT(section_nr); | 48 | unsigned long root = SECTION_NR_TO_ROOT(section_nr); |
50 | struct mem_section *section; | 49 | struct mem_section *section; |
51 | int ret = 0; | 50 | int ret = 0; |