summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/setup.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-09-27 10:00:54 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-09-27 10:10:58 +0100
commit456335e2072fb35bf290b45e61d51916c322c145 (patch)
tree985fddceeeff3e3a8cbbff33a8130fc31637ec8d /include/asm-arm/setup.h
parentc06015148fa9a3cc452ec7121b8c3f59f4a7d6ac (diff)
downloadlinux-456335e2072fb35bf290b45e61d51916c322c145.tar.gz
linux-456335e2072fb35bf290b45e61d51916c322c145.tar.bz2
linux-456335e2072fb35bf290b45e61d51916c322c145.zip
[ARM] Separate page table manipulation code from bootmem initialisation
nommu does not require the page table manipulation code in the bootmem initialisation paths. Move this into separate inline functions. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/setup.h')
-rw-r--r--include/asm-arm/setup.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/asm-arm/setup.h b/include/asm-arm/setup.h
index ea3ed2465233..aa4b5782f0c9 100644
--- a/include/asm-arm/setup.h
+++ b/include/asm-arm/setup.h
@@ -194,13 +194,15 @@ static struct tagtable __tagtable_##fn __tag = { tag, fn }
# define NR_BANKS 8
#endif
+struct membank {
+ unsigned long start;
+ unsigned long size;
+ int node;
+};
+
struct meminfo {
int nr_banks;
- struct {
- unsigned long start;
- unsigned long size;
- int node;
- } bank[NR_BANKS];
+ struct membank bank[NR_BANKS];
};
/*