riscv: mm: Remove the copy operation of pmd

Since all processes share the kernel address space,
we only need to copy pgd in case of a vmalloc page
fault exception, the other levels of page tables are
shared, so the operation of copying pmd is unnecessary.

Signed-off-by: Chuanhua Han <hanchuanhua@oppo.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
Chuanhua Han 2022-03-31 19:43:20 -07:00 • committed by Palmer Dabbelt
commit 7da9ca3f5b
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889