diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-06-14 02:57:51 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-07-12 03:16:45 +0200 |
commit | 770e1ac5f29003fca18af4e67eb5a05ddb5b1491 (patch) | |
tree | 71a5f1e9efb001a4f46bc077c024dedd1f94a835 /include | |
parent | mm: Move definition of MIN_MEMORY_BLOCK_SIZE to a header (diff) | |
download | linux-770e1ac5f29003fca18af4e67eb5a05ddb5b1491.tar.xz linux-770e1ac5f29003fca18af4e67eb5a05ddb5b1491.zip |
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 <benh@kernel.crashing.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions