Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Franck Bui-Huu and committed by
Ralf Baechle
1c6fd44d 8df32c63

+3 -9
+3 -9
arch/mips/kernel/setup.c
··· 473 473 paging_init(); 474 474 } 475 475 476 - #define MAXMEM HIGHMEM_START 477 - #define MAXMEM_PFN PFN_DOWN(MAXMEM) 478 - 479 476 static void __init resource_init(void) 480 477 { 481 478 int i; ··· 494 497 495 498 start = boot_mem_map.map[i].addr; 496 499 end = boot_mem_map.map[i].addr + boot_mem_map.map[i].size - 1; 497 - if (start >= MAXMEM) 500 + if (start >= HIGHMEM_START) 498 501 continue; 499 - if (end >= MAXMEM) 500 - end = MAXMEM - 1; 502 + if (end >= HIGHMEM_START) 503 + end = HIGHMEM_START - 1; 501 504 502 505 res = alloc_bootmem(sizeof(struct resource)); 503 506 switch (boot_mem_map.map[i].type) { ··· 525 528 request_resource(res, &data_resource); 526 529 } 527 530 } 528 - 529 - #undef MAXMEM 530 - #undef MAXMEM_PFN 531 531 532 532 void __init setup_arch(char **cmdline_p) 533 533 {