|
@@ -772,7 +772,7 @@ static void update_end_of_memory_vars(u64 start, u64 size)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-int arch_add_memory(int nid, u64 start, u64 size, bool for_device)
|
|
|
+int arch_add_memory(int nid, u64 start, u64 size, bool want_memblock)
|
|
|
{
|
|
|
unsigned long start_pfn = start >> PAGE_SHIFT;
|
|
|
unsigned long nr_pages = size >> PAGE_SHIFT;
|
|
@@ -780,7 +780,7 @@ int arch_add_memory(int nid, u64 start, u64 size, bool for_device)
|
|
|
|
|
|
init_memory_mapping(start, start + size);
|
|
|
|
|
|
- ret = __add_pages(nid, start_pfn, nr_pages, !for_device);
|
|
|
+ ret = __add_pages(nid, start_pfn, nr_pages, want_memblock);
|
|
|
WARN_ON_ONCE(ret);
|
|
|
|
|
|
/* update max_pfn, max_low_pfn and high_memory */
|