Skip to content

Commit

Permalink
[MIPS] setup.c: remove MAXMEM macro
Browse files Browse the repository at this point in the history
It doesn't improve readability.

Signed-off-by: Franck Bui-Huu <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
  • Loading branch information
Franck Bui-Huu authored and ralfbaechle committed Sep 27, 2006
1 parent 8df32c6 commit 1c6fd44
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down Expand Up @@ -529,9 +526,6 @@ static void __init resource_init(void)
}
}

#undef MAXMEM
#undef MAXMEM_PFN

void __init setup_arch(char **cmdline_p)
{
cpu_probe();
Expand Down

0 comments on commit 1c6fd44

Please sign in to comment.