[ARM] mm: provide helpers for accessing membanks
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Wed, 1 Oct 2008 15:56:15 +0000 (16:56 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 1 Oct 2008 16:22:02 +0000 (17:22 +0100)
commitd2a38ef9c1585b47462c7be5501228ac57fbd3b1
tree81ae36059881fbee802ec45081a74a866d92819e
parent6c5da7aced798c7781f054a76c769b85f0173561
[ARM] mm: provide helpers for accessing membanks

Provide helpers for getting physical addresses or pfns from the
meminfo array, and use them.  Move for_each_nodebank() to
asm/setup.h alongside the meminfo structure definition.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/setup.h
arch/arm/mm/init.c