diff options
Diffstat (limited to 'mm/memblock.c')
-rw-r--r-- | mm/memblock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/memblock.c b/mm/memblock.c index 9ad39690a2bd..ae8b06c828c7 100644 --- a/mm/memblock.c +++ b/mm/memblock.c | |||
@@ -752,6 +752,12 @@ void __init memblock_analyze(void) | |||
752 | 752 | ||
753 | void __init memblock_init(void) | 753 | void __init memblock_init(void) |
754 | { | 754 | { |
755 | static int init_done __initdata = 0; | ||
756 | |||
757 | if (init_done) | ||
758 | return; | ||
759 | init_done = 1; | ||
760 | |||
755 | /* Hookup the initial arrays */ | 761 | /* Hookup the initial arrays */ |
756 | memblock.memory.regions = memblock_memory_init_regions; | 762 | memblock.memory.regions = memblock_memory_init_regions; |
757 | memblock.memory.max = INIT_MEMBLOCK_REGIONS; | 763 | memblock.memory.max = INIT_MEMBLOCK_REGIONS; |