diff options
author | Christoph Hellwig <hch@lst.de> | 2018-01-09 15:00:36 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2018-01-30 19:16:07 -0800 |
commit | 372def1f934134cb391234ccdf23c21ae94343c2 (patch) | |
tree | 04051029e0ae6a768d4026e8bc575d26fdbe9c6b /arch/riscv/mm | |
parent | 0ca7a0b7c13ecafd12b37a6793d3e302dfea0475 (diff) | |
download | linux-372def1f934134cb391234ccdf23c21ae94343c2.tar.bz2 |
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.c | 2 |
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(); |