riscv: Add support pte_protnone and pmd_protnone if CONFIG_NUMA_BALANCING
authorGreentime Hu <greentime.hu@sifive.com>
Thu, 19 Nov 2020 00:38:28 +0000 (16:38 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 14 Jan 2021 23:08:57 +0000 (15:08 -0800)
commit3e5b0bdb2a4dd8c09a9db01b1ead3f69cabd0c67
tree94d4f02dd157717ed207bc9c02e246d7b741de63
parentcbd34f4bb37d62d8a027f54205bff07e73340da4
riscv: Add support pte_protnone and pmd_protnone if CONFIG_NUMA_BALANCING

These two functions are used to distinguish between PROT_NONENUMA
protections and hinting fault protections.

Signed-off-by: Greentime Hu <greentime.hu@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/pgtable.h