summaryrefslogtreecommitdiff
path: root/arch/riscv
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-01-09 17:00:33 +0300
committerPalmer Dabbelt <palmer@dabbelt.com>2018-01-31 06:16:00 +0300
commit0ca7a0b7c13ecafd12b37a6793d3e302dfea0475 (patch)
tree05b2bdb5ac64228503d070aee5c0079604f385e8 /arch/riscv
parent5ec9c4ff0430e33b602cc0ff8ab9dec8ef548d28 (diff)
downloadlinux-0ca7a0b7c13ecafd12b37a6793d3e302dfea0475.tar.xz
riscv: remove the unused current_pgdir function
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/include/asm/mmu_context.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/riscv/include/asm/mmu_context.h b/arch/riscv/include/asm/mmu_context.h
index 97424834dce2..082ef8652ac7 100644
--- a/arch/riscv/include/asm/mmu_context.h
+++ b/arch/riscv/include/asm/mmu_context.h
@@ -39,11 +39,6 @@ static inline void destroy_context(struct mm_struct *mm)
{
}
-static inline pgd_t *current_pgdir(void)
-{
- return pfn_to_virt(csr_read(sptbr) & SPTBR_PPN);
-}
-
static inline void set_pgdir(pgd_t *pgd)
{
csr_write(sptbr, virt_to_pfn(pgd) | SPTBR_MODE);