From: Jiang Liu Date: Thu, 27 Jun 2013 23:51:53 +0000 (+1000) Subject: mm/hotplug: prepare for removing num_physpages X-Git-Tag: next-20130628~3^2~487 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=48a2dfdebe4f1ff6d3786a2df627d88074ad6165;p=karo-tx-linux.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 --- diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 246acc4e1cc5..f5ba127b2051 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);