]> git.baikalelectronics.ru Git - kernel.git/commit
asm-generic: Prepare for riscv use of pud_alloc_one and pud_free
authorAlexandre Ghiti <alexandre.ghiti@canonical.com>
Mon, 6 Dec 2021 10:46:50 +0000 (11:46 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 20 Jan 2022 01:54:08 +0000 (17:54 -0800)
commitb2dc0a959c3bd18d1e8d162d6a4f31d16faeb697
treefad7008b86a5a38798d7a3a64446cabbb58ee9ba
parent2035148342f3298e82e631f5ec633c914fd2a62f
asm-generic: Prepare for riscv use of pud_alloc_one and pud_free

In the following commits, riscv will almost use the generic versions of
pud_alloc_one and pud_free but an additional check is required since those
functions are only relevant when using at least a 4-level page table, which
will be determined at runtime on riscv.

So move the content of those functions into other functions that riscv
can use without duplicating code.

Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
include/asm-generic/pgalloc.h