riscv: don't read back satp in paging_init

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/372def1f934134cb391234ccdf23c21ae94343c2
Commit:     372def1f934134cb391234ccdf23c21ae94343c2
Parent:     0ca7a0b7c13ecafd12b37a6793d3e302dfea0475
Refname:    refs/heads/master
Author:     Christoph Hellwig <[email protected]>
AuthorDate: Tue Jan 9 15:00:36 2018 +0100
Committer:  Palmer Dabbelt <[email protected]>
CommitDate: Tue Jan 30 19:16:07 2018 -0800

    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 <[email protected]>
    Signed-off-by: Palmer Dabbelt <[email protected]>
---
 arch/riscv/mm/init.c | 2 --
 1 file changed, 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));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.