Commit 1c6fd44d authored by Franck Bui-Huu's avatar Franck Bui-Huu Committed by Ralf Baechle

[MIPS] setup.c: remove MAXMEM macro

It doesn't improve readability.
Signed-off-by: default avatarFranck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 8df32c63
...@@ -473,9 +473,6 @@ static void __init arch_mem_init(char **cmdline_p) ...@@ -473,9 +473,6 @@ static void __init arch_mem_init(char **cmdline_p)
paging_init(); paging_init();
} }
#define MAXMEM HIGHMEM_START
#define MAXMEM_PFN PFN_DOWN(MAXMEM)
static void __init resource_init(void) static void __init resource_init(void)
{ {
int i; int i;
...@@ -497,10 +494,10 @@ static void __init resource_init(void) ...@@ -497,10 +494,10 @@ static void __init resource_init(void)
start = boot_mem_map.map[i].addr; start = boot_mem_map.map[i].addr;
end = boot_mem_map.map[i].addr + boot_mem_map.map[i].size - 1; end = boot_mem_map.map[i].addr + boot_mem_map.map[i].size - 1;
if (start >= MAXMEM) if (start >= HIGHMEM_START)
continue; continue;
if (end >= MAXMEM) if (end >= HIGHMEM_START)
end = MAXMEM - 1; end = HIGHMEM_START - 1;
res = alloc_bootmem(sizeof(struct resource)); res = alloc_bootmem(sizeof(struct resource));
switch (boot_mem_map.map[i].type) { switch (boot_mem_map.map[i].type) {
...@@ -529,9 +526,6 @@ static void __init resource_init(void) ...@@ -529,9 +526,6 @@ static void __init resource_init(void)
} }
} }
#undef MAXMEM
#undef MAXMEM_PFN
void __init setup_arch(char **cmdline_p) void __init setup_arch(char **cmdline_p)
{ {
cpu_probe(); cpu_probe();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment