]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] setup.c: remove MAXMEM macro
authorFranck Bui-Huu <vagabon.xyz@gmail.com>
Fri, 11 Aug 2006 15:51:52 +0000 (17:51 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 27 Sep 2006 12:38:02 +0000 (13:38 +0100)
It doesn't improve readability.

Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/setup.c

index f66af9cc7220fdb2160dd004159b9d4ee3d1e1da..804b93dc3c5ae9c05c4905b962a9da998c5c1f7b 100644 (file)
@@ -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();