From: Chad Reese Date: Wed, 31 May 2006 00:16:49 +0000 (-0700) Subject: [MIPS] Fix sparsemem support. X-Git-Tag: v2.6.17-rc6~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1c231f5a57cb4a417c38a8a946f1e66db3bb9c0;p=pandora-kernel.git [MIPS] Fix sparsemem support. Move memory_present() in arch/mips/kernel/setup.c. When using sparsemem extreme, this function does an allocate for bootmem. This would always fail since init_bootmem hasn't been called yet. Move memory_present after free_bootmem. This only marks actual memory ranges as present instead of the entire address space. Signed-off-by: Chad Reese Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed