X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Fmemory_hotplug.c;h=df9d554bea3081ec75b45e828326e015b62c0338;hb=dc8a7b11aa68d6795a46e0a42ce92220d1a6f0cd;hp=0c055a090f4df19e042312e2a30cef3140fb8558;hpb=bef986502fa398b1785a3979b1aa17cd902d3527;p=pandora-kernel.git diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 0c055a090f4d..df9d554bea30 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -65,13 +65,15 @@ static int __add_zone(struct zone *zone, unsigned long phys_start_pfn) int zone_type; zone_type = zone - pgdat->node_zones; - if (!populated_zone(zone)) { + if (!zone->wait_table) { int ret = 0; - ret = init_currently_empty_zone(zone, phys_start_pfn, nr_pages); + ret = init_currently_empty_zone(zone, phys_start_pfn, + nr_pages, MEMMAP_HOTPLUG); if (ret < 0) return ret; } - memmap_init_zone(nr_pages, nid, zone_type, phys_start_pfn); + memmap_init_zone(nr_pages, nid, zone_type, + phys_start_pfn, MEMMAP_HOTPLUG); return 0; }