From: Pekka J Enberg Date: Mon, 22 Jun 2009 14:39:41 +0000 (+0300) Subject: x86: Move init_gbpages() to setup_arch() X-Git-Tag: v2.6.31-rc2~76^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=854c879f5abf309ebd378bea1ee41acf4ddf7194;p=pandora-kernel.git x86: Move init_gbpages() to setup_arch() The init_gbpages() function is conditionally called from init_memory_mapping() function. There are two call-sites where this 'after_bootmem' condition can be true: setup_arch() and mem_init() via pci_iommu_alloc(). Therefore, it's safe to move the call to init_gbpages() to setup_arch() as it's always called before mem_init(). This removes an after_bootmem use - paving the way to remove all uses of that state variable. Signed-off-by: Pekka Enberg Acked-by: Yinghai Lu LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed