Commit 5898fc01 authored by Samuel Holland's avatar Samuel Holland Committed by Paul Walmsley
Browse files

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: default avatarSamuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20251015233327.3885003-1-samuel.holland@sifive.com


Signed-off-by: default avatarPaul Walmsley <pjw@kernel.org>
parent 223bfc4d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment