diff options
author | Franck Bui-Huu <vagabon.xyz@gmail.com> | 2006-08-11 11:51:52 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-09-27 08:38:02 -0400 |
commit | 1c6fd44d7ed3d105b2eaa29d72b415ca51e40d32 (patch) | |
tree | f815c06c26ce0934627bc006ec99c187d341a631 | |
parent | 8df32c636e785069ba7d223ceb9b72c182902295 (diff) |
[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.c | 12 |
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) | |||
473 | paging_init(); | 473 | paging_init(); |
474 | } | 474 | } |
475 | 475 | ||
476 | #define MAXMEM HIGHMEM_START | ||
477 | #define MAXMEM_PFN PFN_DOWN(MAXMEM) | ||
478 | |||
479 | static void __init resource_init(void) | 476 | static void __init resource_init(void) |
480 | { | 477 | { |
481 | int i; | 478 | int i; |
@@ -497,10 +494,10 @@ static void __init resource_init(void) | |||
497 | 494 | ||
498 | start = boot_mem_map.map[i].addr; | 495 | start = boot_mem_map.map[i].addr; |
499 | end = boot_mem_map.map[i].addr + boot_mem_map.map[i].size - 1; | 496 | end = boot_mem_map.map[i].addr + boot_mem_map.map[i].size - 1; |
500 | if (start >= MAXMEM) | 497 | if (start >= HIGHMEM_START) |
501 | continue; | 498 | continue; |
502 | if (end >= MAXMEM) | 499 | if (end >= HIGHMEM_START) |
503 | end = MAXMEM - 1; | 500 | end = HIGHMEM_START - 1; |
504 | 501 | ||
505 | res = alloc_bootmem(sizeof(struct resource)); | 502 | res = alloc_bootmem(sizeof(struct resource)); |
506 | switch (boot_mem_map.map[i].type) { | 503 | switch (boot_mem_map.map[i].type) { |
@@ -529,9 +526,6 @@ static void __init resource_init(void) | |||
529 | } | 526 | } |
530 | } | 527 | } |
531 | 528 | ||
532 | #undef MAXMEM | ||
533 | #undef MAXMEM_PFN | ||
534 | |||
535 | void __init setup_arch(char **cmdline_p) | 529 | void __init setup_arch(char **cmdline_p) |
536 | { | 530 | { |
537 | cpu_probe(); | 531 | cpu_probe(); |