LoongArch: mm: Introduce unified function populate_kernel_pte()
authorBibo Mao <maobibo@loongson.cn>
Wed, 6 Sep 2023 14:53:09 +0000 (22:53 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 6 Sep 2023 14:53:09 +0000 (22:53 +0800)
commit2bb20d2926a8ea991386315aa8017990ef7beb6a
tree8a052735e29b75bbdf6b59bfce471bcea40cee49
parentf33efa905ce4839d9d1f20b559db9c2e8a39e059
LoongArch: mm: Introduce unified function populate_kernel_pte()

Function pcpu_populate_pte() and fixmap_pte() are similar, they populate
one page from kernel address space. And there is confusion between pgd
and p4d in the function fixmap_pte(), such as pgd_none() always returns
zero. This patch introduces a unified function populate_kernel_pte() and
then replaces pcpu_populate_pte() and fixmap_pte().

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/pgalloc.h
arch/loongarch/kernel/numa.c
arch/loongarch/mm/init.c