| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH -queue 1/2] [loongson] mem.c: indent the file with TAB instead of whitespaces |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Wed, 11 Nov 2009 13:39:11 +0800 |
| Cc: | linux-mips@linux-mips.org, Wu Zhangjin <wuzhangjin@gmail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:in-reply-to:references; bh=xLfQB6SvxrMyNbzvbJgtZFemC/MXrmo9KO5IMRA9jHs=; b=CSq+sgcE7ja+D1lygxhaGCIRQcuWxjqC8sgTvTRPbwyVEJo00c2IKFfWt3pVsJ59Ti RxVvlInkGKXQcBzemTCninQwPDQ6U55IyHMI9Ujuse2FQIoPLnUyV9zEVE21hyq+sCIF cTL0O7hsHI48hV1ipWbhAoWccFgtOHkbyeCAg= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=OvMzavt+4SSJPCIx8kmztR1k1xuOQlB1Bq74ac4FGhdE/4bbVdoJM39IznTh3cAJRn 2FPprPSijGntRH08/Rqpx6VM7NClYCNYDhJbBHxpqk47X3u3Q6OTlAQKoNV6H7KnGXKK ugRofAxE1XR8yDtOzFLT6avLjeJTUnb3i0Hj0= |
| In-reply-to: | <cover.1257917611.git.wuzhangjin@gmail.com> |
| In-reply-to: | <cover.1257917611.git.wuzhangjin@gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <cover.1257917611.git.wuzhangjin@gmail.com> |
| References: | <cover.1257917611.git.wuzhangjin@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Wu Zhangjin <wuzhangjin@gmail.com>
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
arch/mips/loongson/common/mem.c | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/arch/mips/loongson/common/mem.c b/arch/mips/loongson/common/mem.c
index 45991af..312c765 100644
--- a/arch/mips/loongson/common/mem.c
+++ b/arch/mips/loongson/common/mem.c
@@ -16,10 +16,11 @@
void __init prom_init_memory(void)
{
- add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM);
+ add_memory_region(0x0, (memsize << 20), BOOT_MEM_RAM);
- add_memory_region(memsize << 20, LOONGSON_PCI_MEM_START - (memsize <<
- 20), BOOT_MEM_RESERVED);
+ add_memory_region(memsize << 20,
+ LOONGSON_PCI_MEM_START - (memsize << 20),
+ BOOT_MEM_RESERVED);
#ifdef CONFIG_64BIT
#ifdef CONFIG_CPU_LOONGSON2F
{
@@ -36,16 +37,16 @@ void __init prom_init_memory(void)
0x80000000ul, (1 << bit));
mmiowb();
}
-#endif /* CONFIG_CPU_LOONGSON2F */
+#endif /* CONFIG_CPU_LOONGSON2F */
- if (highmemsize > 0)
- add_memory_region(LOONGSON_HIGHMEM_START,
- highmemsize << 20, BOOT_MEM_RAM);
+ if (highmemsize > 0)
+ add_memory_region(LOONGSON_HIGHMEM_START,
+ highmemsize << 20, BOOT_MEM_RAM);
- add_memory_region(LOONGSON_PCI_MEM_END + 1, LOONGSON_HIGHMEM_START -
- LOONGSON_PCI_MEM_END - 1, BOOT_MEM_RESERVED);
+ add_memory_region(LOONGSON_PCI_MEM_END + 1, LOONGSON_HIGHMEM_START -
+ LOONGSON_PCI_MEM_END - 1, BOOT_MEM_RESERVED);
-#endif /* CONFIG_64BIT */
+#endif /* CONFIG_64BIT */
}
/* override of arch/mips/mm/cache.c: __uncached_access */
@@ -55,6 +56,6 @@ int __uncached_access(struct file *file, unsigned long addr)
return 1;
return addr >= __pa(high_memory) ||
- ((addr >= LOONGSON_MMIO_MEM_START) &&
- (addr < LOONGSON_MMIO_MEM_END));
+ ((addr >= LOONGSON_MMIO_MEM_START) &&
+ (addr < LOONGSON_MMIO_MEM_END));
}
--
1.6.2.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH -queue 0/2] Cleanups of loongson support, Wu Zhangjin |
|---|---|
| Next by Date: | [PATCH -queue 2/2] [loongson] 2f: Cleanups of the #if clauses, Wu Zhangjin |
| Previous by Thread: | [PATCH -queue 0/2] Cleanups of loongson support, Wu Zhangjin |
| Next by Thread: | [PATCH -queue 2/2] [loongson] 2f: Cleanups of the #if clauses, Wu Zhangjin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |