mm/core, x86/mm/pkeys: Add arch_validate_pkey()
[cascardo/linux.git] / arch / x86 / include / asm / pkeys.h
1 #ifndef _ASM_X86_PKEYS_H
2 #define _ASM_X86_PKEYS_H
3
4 #define arch_max_pkey() (boot_cpu_has(X86_FEATURE_OSPKE) ? 16 : 1)
5
6 #endif /*_ASM_X86_PKEYS_H */