linux-mips
[Top] [All Lists]

[PATCH 5/6] setup.c: remove MAXMEM macro

To: linux-mips@linux-mips.org
Subject: [PATCH 5/6] setup.c: remove MAXMEM macro
From: Franck Bui-Huu <vagabon.xyz@gmail.com>
Date: Fri, 11 Aug 2006 17:51:52 +0200
Cc: anemo@mba.ocn.ne.jp, ralf@linux-mips.org, yoichi_yuasa@tripeaks.co.jp, Franck Bui-Huu <vagabon.xyz@gmail.com>
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=qHv3VkOqEyFS5HesuvPvzDDCf90AZC98SdaSP1ZP9ClYFNAz2vU6IgA8vpTgWz/i88STRDozPo09q4tg+BWZtwv2ITsNywu6KPIjV1UoowVosm87AVMcFoWXhz1ToQHDqH0ROF7oM9n3X3cSZK1p99c9bPlTxjGY5MqV2RUzGC8=
In-reply-to: <1155311513926-git-send-email-vagabon.xyz@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1155311513926-git-send-email-vagabon.xyz@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
It doens't improve readability.

Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
---
 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 0c6c5a3..fad28a6 100644
--- a/arch/mips/kernel/setup.c
+++ b/arch/mips/kernel/setup.c
@@ -473,9 +473,6 @@ static void __init arch_mem_init(char **
        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();
-- 
1.4.2.rc4


<Prev in Thread] Current Thread [Next in Thread>