linux-mips
[Top] [All Lists]

[PATCH] MIPS: Remove get_current_pgd().

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH] MIPS: Remove get_current_pgd().
From: David Daney <ddaney.cavm@gmail.com>
Date: Wed, 28 Mar 2012 15:59:58 -0700
Cc: David Daney <ddaney@caviumnetworks.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=PWwSiNGSK3R1HjiUmoifTeyTmO8FkwUFqtpqrlky3w8=; b=BJzZmohpa46kV57/G26FUNJhnjLzXYct1mhGtONzmly9/aa9NYIjC08mc8Y4aewObS 2saKfRsAzEOL19hvBwV2IWEGyCTxejgvaFEd4BGybDLoZQ7UqgYwSL++kQVdTtJwfHFQ zPNOBO63KXsM7Rl3XxyqupimDL6gpaXmbHyw0V8O8vbCWtDa/eIE0WQmX5jJSgqAJoSG G1OnG6YqAeHw/gWcxosOlwHmitBKFQJYXd0Omt8l230Dbz1eLpHOgQcIVeJ09z5+Ij1m AxrsiWbwlnaeGuf886rZPrXIbIHbeXTyeoCsYZjvZ5TcwiSAQHKukCL7YXJKW/XMW5J8 NG7g==
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <ddaney@caviumnetworks.com>

It is unused in the tree.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
 arch/mips/include/asm/mmu_context.h |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/arch/mips/include/asm/mmu_context.h 
b/arch/mips/include/asm/mmu_context.h
index 145bb81..50e0ac9 100644
--- a/arch/mips/include/asm/mmu_context.h
+++ b/arch/mips/include/asm/mmu_context.h
@@ -43,12 +43,6 @@ static inline void tlbmiss_handler_setup_pgd(unsigned long 
pgd)
                write_c0_xcontext((unsigned long) smp_processor_id() << 51); \
        } while (0)
 
-
-static inline unsigned long get_current_pgd(void)
-{
-       return PHYS_TO_XKSEG_CACHED((read_c0_context() >> 11) & ~0xfffUL);
-}
-
 #else /* CONFIG_MIPS_PGD_C0_CONTEXT: using  pgd_current*/
 
 /*
-- 
1.7.2.3


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] MIPS: Remove get_current_pgd()., David Daney <=