summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/book3s/64/pkeys.h
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>2020-07-09 06:29:39 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-20 15:57:59 +0300
commitf7045a45115b17fe695ea7075f5213706f202edb (patch)
treefd5af6f2593f50d9a7d3af5d6257a0393c2073df /arch/powerpc/include/asm/book3s/64/pkeys.h
parent2daf298de728dc37f32d0749fa4f59db36fa7d96 (diff)
downloadlinux-f7045a45115b17fe695ea7075f5213706f202edb.tar.xz
powerpc/book3s64/pkeys: Use MMU_FTR_PKEY instead of pkey_disabled static key
Instead of pkey_disabled static key use mmu feature MMU_FTR_PKEY. 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/20200709032946.881753-17-aneesh.kumar@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include/asm/book3s/64/pkeys.h')
-rw-r--r--arch/powerpc/include/asm/book3s/64/pkeys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/book3s/64/pkeys.h b/arch/powerpc/include/asm/book3s/64/pkeys.h
index 8174662a9173..5b178139f3c0 100644
--- a/arch/powerpc/include/asm/book3s/64/pkeys.h
+++ b/arch/powerpc/include/asm/book3s/64/pkeys.h
@@ -7,7 +7,7 @@
static inline u64 vmflag_to_pte_pkey_bits(u64 vm_flags)
{
- if (static_branch_likely(&pkey_disabled))
+ if (!mmu_has_feature(MMU_FTR_PKEY))
return 0x0UL;
if (radix_enabled())