memory-hotplug: allocate zone's pcp before onlining pages
[deliverable/linux.git] / mm / page_alloc.c
index 4dba04f06880f1a4a5a28ac08fb167f0899a925d..5a7b7611d4e4bad1ba81d2a0541020a77063d3fd 100644 (file)
@@ -5983,7 +5983,6 @@ void __meminit zone_pcp_update(struct zone *zone)
 }
 #endif
 
-#ifdef CONFIG_MEMORY_HOTREMOVE
 void zone_pcp_reset(struct zone *zone)
 {
        unsigned long flags;
@@ -6003,6 +6002,7 @@ void zone_pcp_reset(struct zone *zone)
        local_irq_restore(flags);
 }
 
+#ifdef CONFIG_MEMORY_HOTREMOVE
 /*
  * All pages in the range must be isolated before calling this.
  */
This page took 0.02751 seconds and 5 git commands to generate.