]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
riscv: mm: Define MAX_POSSIBLE_PHYSMEM_BITS for zsmalloc
authorSamuel Holland <samuel.holland@sifive.com>
Wed, 15 Oct 2025 23:33:24 +0000 (16:33 -0700)
committerPaul Walmsley <pjw@kernel.org>
Sat, 18 Oct 2025 04:00:29 +0000 (22:00 -0600)
commit5898fc01ff344075e4332aa9abeb0841c85e7e51
tree95787bf9420594f46b393d0b95083e8fc672e46d
parent223bfc4d403c5e4841f9d2b5be88a6e236942e4e
riscv: mm: Define MAX_POSSIBLE_PHYSMEM_BITS for zsmalloc

This definition is used by zsmalloc to optimize memory allocation. On
riscv64, it is the same as MAX_PHYSMEM_BITS from asm/sparsemem.h, but
that definition depends on CONFIG_SPARSEMEM. The correct definition is
already provided for riscv32.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20251015233327.3885003-1-samuel.holland@sifive.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
arch/riscv/include/asm/pgtable-64.h