aboutsummaryrefslogtreecommitdiff
path: root/arch/loongarch/kernel/numa.c
diff options
context:
space:
mode:
authorGravatar Bibo Mao <maobibo@loongson.cn> 2023-09-06 22:53:10 +0800
committerGravatar Huacai Chen <chenhuacai@loongson.cn> 2023-09-06 22:53:10 +0800
commit0921af6ccfb37dc2d6aefcf744333c14e7ca739d (patch)
tree4bdb59dc579e6b2a98fe02142261a629cb22469d /arch/loongarch/kernel/numa.c
parentLoongArch: mm: Introduce unified function populate_kernel_pte() (diff)
downloadlinux-0921af6ccfb37dc2d6aefcf744333c14e7ca739d.tar.gz
linux-0921af6ccfb37dc2d6aefcf744333c14e7ca739d.tar.bz2
linux-0921af6ccfb37dc2d6aefcf744333c14e7ca739d.zip
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/kernel/numa.c')
-rw-r--r--arch/loongarch/kernel/numa.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/numa.c b/arch/loongarch/kernel/numa.c
index cb00804826f7..c7d33c489e04 100644
--- a/arch/loongarch/kernel/numa.c
+++ b/arch/loongarch/kernel/numa.c
@@ -438,7 +438,6 @@ void __init mem_init(void)
{
high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT);
memblock_free_all();
- setup_zero_pages(); /* This comes from node 0 */
}
int pcibus_to_node(struct pci_bus *bus)