Merge tag 'v4.9-rc1' into x86/fpu, to resolve conflict
[linux-2.6-block.git] / arch / x86 / kernel / fpu / xstate.c
index 124aa5c593f8da7aba6643bc609a332744d10ba6..17ad31fd0a9f7439889272f43671bfe00ceb23b8 100644 (file)
@@ -888,15 +888,6 @@ int arch_set_user_pkey_access(struct task_struct *tsk, int pkey,
         */
        if (!boot_cpu_has(X86_FEATURE_OSPKE))
                return -EINVAL;
-       /*
-        * For most XSAVE components, this would be an arduous task:
-        * brining fpstate up to date with fpregs, updating fpstate,
-        * then re-populating fpregs.  But, for components that are
-        * never lazily managed, we can just access the fpregs
-        * directly.  PKRU is never managed lazily, so we can just
-        * manipulate it directly.  Make sure it stays that way.
-        */
-       WARN_ON_ONCE(!use_eager_fpu());
 
        /* Set the bits we need in PKRU:  */
        if (init_val & PKEY_DISABLE_ACCESS)