]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/mm/pkeys.c
x86/fpu: Change fpu->fpregs_active users to fpu->fpstate_active
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / mm / pkeys.c
index e2c23472233e09ec0517d014c71b421bc960216d..4d24269c071f4962ddcddf1e939d79c8e5583975 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <asm/cpufeature.h>             /* boot_cpu_has, ...            */
 #include <asm/mmu_context.h>            /* vma_pkey()                   */
-#include <asm/fpu/internal.h>           /* fpregs_active()              */
 
 int __execute_only_pkey(struct mm_struct *mm)
 {
@@ -45,7 +44,7 @@ int __execute_only_pkey(struct mm_struct *mm)
         */
        preempt_disable();
        if (!need_to_set_mm_pkey &&
-           current->thread.fpu.fpregs_active &&
+           current->thread.fpu.fpstate_active &&
            !__pkru_allows_read(read_pkru(), execute_only_pkey)) {
                preempt_enable();
                return execute_only_pkey;