[ARM] Clean up discontigmem support
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 30 Nov 2006 20:39:18 +0000 (20:39 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 30 Nov 2006 22:52:28 +0000 (22:52 +0000)
commitb7dc96d75309346c1213875be68fdbbec92da5e7
treeb6f85da5e99cb3f20fef42504ce7b82b4a69c6fc
parent0215ffb08ce99e2bb59eca114a99499a4d06e704
[ARM] Clean up discontigmem support

Most architectures have fairly simple discontiguous memory - a
simple set of successive regions each containing some memory.
These can be described simply as a log2 of their maximum size,
along with the base address of the first region and the number
of regions.

The base address is already described by PHYS_PFN_OFFSET, and
the number of regions via the MAX_NUMNODES and the number of
online nodes.

If we then supply the log2 of their maximum size, all the other
discontigmem macros can move into generic code.

There is one exception: lh7a40x seems to have a more complicated
setup; this is left alone.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-aaec2000/memory.h
include/asm-arm/arch-clps711x/memory.h
include/asm-arm/arch-lh7a40x/memory.h
include/asm-arm/arch-pxa/memory.h
include/asm-arm/arch-sa1100/memory.h
include/asm-arm/memory.h