| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 2/2] MIPS: Cleanup of set_uncached_handler() |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Tue, 27 Apr 2010 13:45:47 +0800 |
| Cc: | David Daney <ddaney@caviumnetworks.com>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, post@pfrst.de, linux-mips <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; bh=ICTLGVzI7eslsRMqcC3oJOexzS0ayJ4kaaH8zvTT4Cs=; b=YK+rVZyS4lbvBxS11uletaQxR9IQa5iZnvC4eQBT6qBxJu70ucbKWY/v1SrZ+cBhil Q2xe9Wdj30TAG4Xy2PbhzQcmjDCvavHpeMwlOhBh7kSTD95TnAAM8duQl5G7dWIXrNA+ ROFMfyvlSpif3UYN9q04+LzISsQ5ZJiBqFTgU= |
| 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=nJl4a63SqYpqShQCB6v4o0waqLGt0P29bRRy9ChQKkGCWkaeheaUoogRqTh/zn4Fr6 HAfCM6wqOnc8UnvYmL6bjcKTXhlUbeOJmlIaN7lNd5XhbMMzcScD7+d88XVrBmSvyLUN B5pBQPnnCVrFk/gPabj4vPpcfElsncjr1tqDg= |
| In-reply-to: | <1272347147-15071-1-git-send-email-wuzhangjin@gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1272347147-15071-1-git-send-email-wuzhangjin@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Wu Zhangjin <wuzhangjin@gmail.com>
The commit "MIPS: Fixup and cleanup of TO_PHYS(), TO_CAC(), TO_UNCAC()"
has provided a TO_UNCAC() for 32bit kernel, so, we can share the same
code between 32bit and 64bit kernel in set_uncached_handler().
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
arch/mips/kernel/traps.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 1a4dd65..fb8cd40 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1557,12 +1557,7 @@ static char panic_null_cerr[] __cpuinitdata =
void __cpuinit set_uncached_handler(unsigned long offset, void *addr,
unsigned long size)
{
-#ifdef CONFIG_32BIT
- unsigned long uncached_ebase = KSEG1ADDR(ebase);
-#endif
-#ifdef CONFIG_64BIT
unsigned long uncached_ebase = TO_UNCAC(ebase);
-#endif
if (!addr)
panic(panic_null_cerr);
--
1.7.0
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/2] MIPS: Fixup and cleanup of TO_PHYS(), TO_CAC(), TO_UNCAC(), Wu Zhangjin |
|---|---|
| Next by Date: | Re: Cavium mips64 perf counters, Giant Sand Fan's |
| Previous by Thread: | [PATCH 1/2] MIPS: Fixup and cleanup of TO_PHYS(), TO_CAC(), TO_UNCAC(), Wu Zhangjin |
| Next by Thread: | use bootmem in platform code on MIPS, Manuel Lauss |
| Indexes: | [Date] [Thread] [Top] [All Lists] |