aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/mm/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/mm/init.c')
-rw-r--r--arch/ia64/mm/init.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c
index 39e2aeb4669d..80db57d063d0 100644
--- a/arch/ia64/mm/init.c
+++ b/arch/ia64/mm/init.c
@@ -648,18 +648,11 @@ mem_init (void)
648#ifdef CONFIG_MEMORY_HOTPLUG 648#ifdef CONFIG_MEMORY_HOTPLUG
649int arch_add_memory(int nid, u64 start, u64 size, bool for_device) 649int arch_add_memory(int nid, u64 start, u64 size, bool for_device)
650{ 650{
651 pg_data_t *pgdat;
652 struct zone *zone;
653 unsigned long start_pfn = start >> PAGE_SHIFT; 651 unsigned long start_pfn = start >> PAGE_SHIFT;
654 unsigned long nr_pages = size >> PAGE_SHIFT; 652 unsigned long nr_pages = size >> PAGE_SHIFT;
655 int ret; 653 int ret;
656 654
657 pgdat = NODE_DATA(nid); 655 ret = __add_pages(nid, start_pfn, nr_pages, !for_device);
658
659 zone = pgdat->node_zones +
660 zone_for_memory(nid, start, size, ZONE_NORMAL, for_device);
661 ret = __add_pages(nid, zone, start_pfn, nr_pages, !for_device);
662
663 if (ret) 656 if (ret)
664 printk("%s: Problem encountered in __add_pages() as ret=%d\n", 657 printk("%s: Problem encountered in __add_pages() as ret=%d\n",
665 __func__, ret); 658 __func__, ret);