From: Nicolas Pitre Date: Mon, 6 Oct 2008 17:24:40 +0000 (-0400) Subject: [ARM] rationalize memory configuration code some more X-Git-Tag: sz_old_beta2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9d5600419ef22389d0477b62a35e5f0a35fa8d7;p=pandora-kernel.git [ARM] rationalize memory configuration code some more Currently there are two instances of struct meminfo: one in kernel/setup.c marked __initdata, and another in mm/init.c with permanent storage. Let's keep only the later to directly populate the permanent version from arm_add_memory(). Also move common validation tests between the MMU and non-MMU cases into arm_add_memory() to remove some duplication. Protection against overflowing the membank array is also moved in there in order to cover the kernel cmdline parsing path as well. Signed-off-by: Nicolas Pitre Signed-off-by: Russell King --- Reading git-diff-tree failed