aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/init_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/init_64.c')
-rw-r--r--arch/x86/mm/init_64.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 0fbb657a8b19..251eeb325ae3 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -486,34 +486,6 @@ EXPORT_SYMBOL_GPL(memory_add_physaddr_to_nid);
486 486
487#endif /* CONFIG_MEMORY_HOTPLUG */ 487#endif /* CONFIG_MEMORY_HOTPLUG */
488 488
489#ifdef CONFIG_MEMORY_HOTPLUG_RESERVE
490/*
491 * Memory Hotadd without sparsemem. The mem_maps have been allocated in advance,
492 * just online the pages.
493 */
494int __add_pages(struct zone *z, unsigned long start_pfn, unsigned long nr_pages)
495{
496 int err = -EIO;
497 unsigned long pfn;
498 unsigned long total = 0, mem = 0;
499 for (pfn = start_pfn; pfn < start_pfn + nr_pages; pfn++) {
500 if (pfn_valid(pfn)) {
501 online_page(pfn_to_page(pfn));
502 err = 0;
503 mem++;
504 }
505 total++;
506 }
507 if (!err) {
508 z->spanned_pages += total;
509 z->present_pages += mem;
510 z->zone_pgdat->node_spanned_pages += total;
511 z->zone_pgdat->node_present_pages += mem;
512 }
513 return err;
514}
515#endif
516
517static struct kcore_list kcore_mem, kcore_vmalloc, kcore_kernel, kcore_modules, 489static struct kcore_list kcore_mem, kcore_vmalloc, kcore_kernel, kcore_modules,
518 kcore_vsyscall; 490 kcore_vsyscall;
519 491