riscv: remove the unused current_pgdir function
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
This commit is contained in:
parent
5ec9c4ff04
commit
0ca7a0b7c1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue