summaryrefslogtreecommitdiffstats
path: root/arch/riscv/mm
diff options
context:
space:
mode:
authorChristoph Hellwig2018-01-09 15:00:36 +0100
committerPalmer Dabbelt2018-01-31 04:16:07 +0100
commit372def1f934134cb391234ccdf23c21ae94343c2 (patch)
tree04051029e0ae6a768d4026e8bc575d26fdbe9c6b /arch/riscv/mm
parentriscv: remove the unused current_pgdir function (diff)
downloadkernel-qcow2-linux-372def1f934134cb391234ccdf23c21ae94343c2.tar.gz
kernel-qcow2-linux-372def1f934134cb391234ccdf23c21ae94343c2.tar.xz
kernel-qcow2-linux-372def1f934134cb391234ccdf23c21ae94343c2.zip
riscv: don't read back satp in paging_init
init_mm.pgd (aka swapped_pgd) gets relocated like all other kernel symbols by the elf loader, so there is no need to reload it from satp. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/mm')
-rw-r--r--arch/riscv/mm/init.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c
index a6c0e8e7d888..c77df8142be2 100644
--- a/arch/riscv/mm/init.c
+++ b/arch/riscv/mm/init.c
@@ -41,8 +41,6 @@ void setup_zero_page(void)
void __init paging_init(void)
{
- init_mm.pgd = (pgd_t *)pfn_to_virt(csr_read(sptbr));
-
setup_zero_page();
local_flush_tlb_all();
zone_sizes_init();