projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec9c4f
)
riscv: remove the unused current_pgdir function
author
Christoph Hellwig
<hch@lst.de>
Tue, 9 Jan 2018 14:00:33 +0000
(15:00 +0100)
committer
Palmer Dabbelt
<palmer@dabbelt.com>
Wed, 31 Jan 2018 03:16:00 +0000
(19:16 -0800)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/mmu_context.h
patch
|
blob
|
history
diff --git
a/arch/riscv/include/asm/mmu_context.h
b/arch/riscv/include/asm/mmu_context.h
index 97424834dce2a7706bccebe505602d21fa78834b..082ef8652ac7cbd288020a0f619dbd0814e930aa 100644
(file)
--- 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);