From: Hauke Mehrtens Date: Wed, 3 Oct 2012 11:34:17 +0000 (+0000) Subject: MIPS: BCM47XX: improve memory size detection X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~15^2^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c47cc20ca53e792938556aa29103fa889ce0d858;p=pandora-kernel.git MIPS: BCM47XX: improve memory size detection The memory size is detected by finding a place where it repeats in memory. Currently we are just checking when the function prom_init is seen again, but it is better to check for a bigger part of the memory to decrease the chance of wrong results. This should fix a problem we saw in OpenWrt, where the detected available memory decreed on some devices when doing a soft reboot. Signed-off-by: Hauke Mehrtens Patchwork: http://patchwork.linux-mips.org/patch/4362 Signed-off-by: John Crispin --- Reading git-diff-tree failed