x86/fpu: Move fpu__write_begin() to regset
[linux-2.6-microblaze.git] / arch / x86 / kernel / fpu / core.c
index d390644..2243701 100644 (file)
@@ -281,30 +281,6 @@ static void fpu__initialize(struct fpu *fpu)
        trace_x86_fpu_init_state(fpu);
 }
 
-/*
- * This function must be called before we write a task's fpstate.
- *
- * Invalidate any cached FPU registers.
- *
- * After this function call, after registers in the fpstate are
- * modified and the child task has woken up, the child task will
- * restore the modified FPU state from the modified context. If we
- * didn't clear its cached status here then the cached in-registers
- * state pending on its former CPU could be restored, corrupting
- * the modifications.
- */
-void fpu__prepare_write(struct fpu *fpu)
-{
-       /*
-        * Only stopped child tasks can be used to modify the FPU
-        * state in the fpstate buffer:
-        */
-       WARN_ON_FPU(fpu == &current->thread.fpu);
-
-       /* Invalidate any cached state: */
-       __fpu_invalidate_fpregs_state(fpu);
-}
-
 /*
  * Drops current FPU state: deactivates the fpregs and
  * the fpstate. NOTE: it still leaves previous contents