From: Jiang Liu Date: Wed, 3 Jul 2013 22:03:44 +0000 (-0700) Subject: mm/hotplug: prepare for removing num_physpages X-Git-Tag: upstream/snapshot3+hdmi~4788^2~322 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e461d627d5c0957457eb354843f3c29b50646d63;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mm/hotplug: prepare for removing num_physpages Prepare for removing num_physpages. Signed-off-by: Jiang Liu Cc: Wen Congyang Cc: Tang Chen Cc: Yasuaki Ishimatsu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 5e34922..106602e 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -763,10 +763,6 @@ EXPORT_SYMBOL_GPL(restore_online_page_callback); void __online_page_set_limits(struct page *page) { - unsigned long pfn = page_to_pfn(page); - - if (pfn >= num_physpages) - num_physpages = pfn + 1; } EXPORT_SYMBOL_GPL(__online_page_set_limits);