]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/hotplug: prepare for removing num_physpages
authorJiang Liu <liuj97@gmail.com>
Thu, 27 Jun 2013 23:51:53 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:45 +0000 (16:37 +1000)
Prepare for removing num_physpages.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Wen Congyang <wency@cn.fujitsu.com>
Cc: Tang Chen <tangchen@cn.fujitsu.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory_hotplug.c

index 246acc4e1cc5a9acfe0ccd22e08bf8aad92fdb15..f5ba127b2051b51d77a35883edec74a4f57cb6a1 100644 (file)
@@ -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);