Skip to content

Commit 4afd006

Browse files
jgoulywilldeacon
authored andcommitted
arm64: enable PKEY support for CPUs with S1POE
Now that PKEYs support has been implemented, enable it for CPUs that support S1POE. Signed-off-by: Joey Gouly <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Acked-by: Catalin Marinas <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent d0d6e7e commit 4afd006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/include/asm/pkeys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int arch_set_user_pkey_access(struct task_struct *tsk, int pkey,
1717

1818
static inline bool arch_pkeys_enabled(void)
1919
{
20-
return false;
20+
return system_supports_poe();
2121
}
2222

2323
static inline int vma_pkey(struct vm_area_struct *vma)

0 commit comments

Comments
 (0)