]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: Use p*d_leaf macros to define p*d_huge
authorAlexandre Ghiti <alex@ghiti.fr>
Thu, 20 Feb 2020 06:10:23 +0000 (01:10 -0500)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 5 Mar 2020 21:09:59 +0000 (13:09 -0800)
commit988c272b0552327ba28368b40cab86ee6be56fe1
treec366b2406e666ce7edebe424077e2ef40a069830
parent6909161cc6ab11362e5a345188e2b6a8e4715bc7
riscv: Use p*d_leaf macros to define p*d_huge

The newly introduced p*d_leaf macros allow to check if an entry of the
page table map to a physical page instead of the next level. To avoid
duplication of code, use those macros to determine if a page table entry
points to a hugepage.

Suggested-by: Paul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/mm/hugetlbpage.c