diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> | 2020-11-27 05:44:09 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-12-03 15:01:25 +0100 |
commit | d5b810b5c938e73fd21b2b05ef6a79837eeaa305 (patch) | |
tree | 6ad037bc30752fc340a23ec3f5e83b55a4f268a5 /arch/powerpc/mm/book3s64/pkeys.c | |
parent | powerpc/book3s64/kuep: Move KUEP related function outside radix (diff) | |
download | linux-d5b810b5c938e73fd21b2b05ef6a79837eeaa305.tar.xz linux-d5b810b5c938e73fd21b2b05ef6a79837eeaa305.zip |
powerpc/book3s64/kuap: Rename MMU_FTR_RADIX_KUAP and MMU_FTR_KUEP
This is in preparation to adding support for kuap with hash translation.
In preparation for that rename/move kuap related functions to
non radix names. Also move the feature bit closer to MMU_FTR_KUEP.
MMU_FTR_KUEP is renamed to MMU_FTR_BOOK3S_KUEP to indicate the feature
is only relevant to BOOK3S_64
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201127044424.40686-8-aneesh.kumar@linux.ibm.com
Diffstat (limited to '')
-rw-r--r-- | arch/powerpc/mm/book3s64/pkeys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/book3s64/pkeys.c b/arch/powerpc/mm/book3s64/pkeys.c index 82c722fbce52..c5c61aa18a04 100644 --- a/arch/powerpc/mm/book3s64/pkeys.c +++ b/arch/powerpc/mm/book3s64/pkeys.c @@ -237,7 +237,7 @@ void __init setup_kuep(bool disabled) if (smp_processor_id() == boot_cpuid) { pr_info("Activating Kernel Userspace Execution Prevention\n"); - cur_cpu_spec->mmu_features |= MMU_FTR_KUEP; + cur_cpu_spec->mmu_features |= MMU_FTR_BOOK3S_KUEP; } /* @@ -258,7 +258,7 @@ void __init setup_kuap(bool disabled) if (smp_processor_id() == boot_cpuid) { pr_info("Activating Kernel Userspace Access Prevention\n"); - cur_cpu_spec->mmu_features |= MMU_FTR_RADIX_KUAP; + cur_cpu_spec->mmu_features |= MMU_FTR_BOOK3S_KUAP; } /* |