[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)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 15 Feb 2012 17:26:59 +0000 (19:26 +0200)
commit3606f7f48be18389e039365c69cd304aafe5377e
treeb0cb96ba4823c128ef61013e1de7d993121167f3
parentf17a7f7e684486b2e5d1344d1bd0c3fee8af8dd8
[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