]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - arch/x86/mm/init_64.c
mm, memory_hotplug: get rid of is_zone_device_section
[mirror_ubuntu-eoan-kernel.git] / arch / x86 / mm / init_64.c
index dae6a5e5ad4a345f9dcb19295b8b3b44671bfd48..9d64291459b638a69954b48d06c9d68637c9e2d7 100644 (file)
@@ -787,7 +787,7 @@ int arch_add_memory(int nid, u64 start, u64 size, bool for_device)
 
        init_memory_mapping(start, start + size);
 
-       ret = __add_pages(nid, zone, start_pfn, nr_pages);
+       ret = __add_pages(nid, zone, start_pfn, nr_pages, !for_device);
        WARN_ON_ONCE(ret);
 
        /* update max_pfn, max_low_pfn and high_memory */