From: Benjamin Herrenschmidt Date: Tue, 14 Jun 2011 00:57:51 +0000 (+1000) Subject: powerpc/mm: Fix memory_block_size_bytes() for non-pseries X-Git-Tag: v3.0~42^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=770e1ac5f29003fca18af4e67eb5a05ddb5b1491;p=pandora-kernel.git powerpc/mm: Fix memory_block_size_bytes() for non-pseries Just compiling pseries in the kernel causes it to override memory_block_size_bytes() regardless of what is the runtime platform. This cleans up the implementation of that function, fixing a bug or two while at it, so that it's harmless (and potentially useful) for other platforms. Without this, bugs in that code would trigger a WARN_ON() in drivers/base/memory.c when booting some different platforms. If/when we have another platform supporting memory hotplug we might want to either move that out to a generic place or make it a ppc_md. callback. Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed