powerpc/math-emu: Move the flush FPU state function into do_mathemu
[profile/ivi/kernel-x86-ivi.git] / arch / powerpc / kernel / traps.c
index f58eaf2..82df498 100644 (file)
@@ -1134,15 +1134,6 @@ void __kprobes program_check_exception(struct pt_regs *regs)
         * instruction or only on FP instructions, whether there is a
         * pattern to occurrences etc. -dgibson 31/Mar/2003
         */
-
-       /*
-        * If we support a HW FPU, we need to ensure the FP state
-        * if flushed into the thread_struct before attempting
-        * emulation
-        */
-#ifdef CONFIG_PPC_FPU
-       flush_fp_to_thread(current);
-#endif
        switch (do_mathemu(regs)) {
        case 0:
                emulate_single_step(regs);