mm, memory_hotplug: add scheduling point to __add_pages
[linux-2.6-microblaze.git] / mm / memory_hotplug.c
index e882cb6..23d5bd9 100644 (file)
@@ -328,6 +328,7 @@ int __ref __add_pages(int nid, unsigned long phys_start_pfn,
                if (err && (err != -EEXIST))
                        break;
                err = 0;
+               cond_resched();
        }
        vmemmap_populate_print_last();
 out: