/* __math_state_restore assumes that cr0.TS is already clear and the fpu state is all ready for use. Used during context switch.  */
void __math_state_restore(void)
/* __math_state_restore assumes that cr0.TS is already clear and the fpu state is all ready for use. Used during context switch.  */
void __math_state_restore(void)
{
	struct thread_info *thread = current_thread_info();
	struct task_struct *tsk = thread->task;
	if (unlikely(restore_fpu_checking(tsk))) {
		stts();
		force_sig(SIGSEGV, tsk);
		return;
	}
	thread->status |= TS_USEDFPU;
	tsk->fpu_counter++;
}