summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Bui-Huu <vagabon.xyz@gmail.com>2006-08-11 17:51:52 +0200
committerRalf Baechle <ralf@linux-mips.org>2006-09-27 13:38:02 +0100
commit1c6fd44d7ed3d105b2eaa29d72b415ca51e40d32 (patch)
treef815c06c26ce0934627bc006ec99c187d341a631
parent8df32c636e785069ba7d223ceb9b72c182902295 (diff)
downloadlinux-rpi-1c6fd44d7ed3d105b2eaa29d72b415ca51e40d32.tar.gz
linux-rpi-1c6fd44d7ed3d105b2eaa29d72b415ca51e40d32.tar.bz2
linux-rpi-1c6fd44d7ed3d105b2eaa29d72b415ca51e40d32.zip
[MIPS] setup.c: remove MAXMEM macro
It doesn't improve readability. Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/kernel/setup.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c
index f66af9cc7220..804b93dc3c5a 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -473,9 +473,6 @@ static void __init arch_mem_init(char **cmdline_p)
paging_init();
}
-#define MAXMEM HIGHMEM_START
-#define MAXMEM_PFN PFN_DOWN(MAXMEM)
-
static void __init resource_init(void)
{
int i;
@@ -497,10 +494,10 @@ static void __init resource_init(void)
start = boot_mem_map.map[i].addr;
end = boot_mem_map.map[i].addr + boot_mem_map.map[i].size - 1;
- if (start >= MAXMEM)
+ if (start >= HIGHMEM_START)
continue;
- if (end >= MAXMEM)
- end = MAXMEM - 1;
+ if (end >= HIGHMEM_START)
+ end = HIGHMEM_START - 1;
res = alloc_bootmem(sizeof(struct resource));
switch (boot_mem_map.map[i].type) {
@@ -529,9 +526,6 @@ static void __init resource_init(void)
}
}
-#undef MAXMEM
-#undef MAXMEM_PFN
-
void __init setup_arch(char **cmdline_p)
{
cpu_probe();