LoongArch: Use static defined zero page rather than allocated
authorBibo Mao <maobibo@loongson.cn>
Wed, 6 Sep 2023 14:53:10 +0000 (22:53 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 6 Sep 2023 14:53:10 +0000 (22:53 +0800)
commit0921af6ccfb37dc2d6aefcf744333c14e7ca739d
tree4bdb59dc579e6b2a98fe02142261a629cb22469d
parent2bb20d2926a8ea991386315aa8017990ef7beb6a
LoongArch: Use static defined zero page rather than allocated

On LoongArch system, there is only one page needed for zero page (no
cache synonyms), and there is no COLOR_ZERO_PAGE, so zero_page_mask is
useless and the macro __HAVE_COLOR_ZERO_PAGE is not necessary.

Like other popular architectures, It is simpler to define the zero page
in kernel BSS code segment rather than dynamically allocate.

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