summaryrefslogtreecommitdiff
path: root/arch/loongarch/include/asm/mmzone.h
diff options
context:
space:
mode:
authorBibo Mao <maobibo@loongson.cn>2023-09-06 17:53:10 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2023-09-06 17:53:10 +0300
commit0921af6ccfb37dc2d6aefcf744333c14e7ca739d (patch)
tree4bdb59dc579e6b2a98fe02142261a629cb22469d /arch/loongarch/include/asm/mmzone.h
parent2bb20d2926a8ea991386315aa8017990ef7beb6a (diff)
downloadlinux-0921af6ccfb37dc2d6aefcf744333c14e7ca739d.tar.xz
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>
Diffstat (limited to 'arch/loongarch/include/asm/mmzone.h')
-rw-r--r--arch/loongarch/include/asm/mmzone.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/loongarch/include/asm/mmzone.h b/arch/loongarch/include/asm/mmzone.h
index fe67d0b4b33d..2b9a90727e19 100644
--- a/arch/loongarch/include/asm/mmzone.h
+++ b/arch/loongarch/include/asm/mmzone.h
@@ -13,6 +13,4 @@ extern struct pglist_data *node_data[];
#define NODE_DATA(nid) (node_data[(nid)])
-extern void setup_zero_pages(void);
-
#endif /* _ASM_MMZONE_H_ */