/* Write f32-f127 back to task->thread.fph if it has been modified.  */
void ia64_flush_fph(struct task_struct *task)
/* Write f32-f127 back to task->thread.fph if it has been modified.  */
void ia64_flush_fph(struct task_struct *task)
{
	struct ia64_psr *psr = ia64_psr(task_pt_regs(task));
	preempt_disable();
	if (ia64_is_local_fpu_owner(task) && psr->mfh) {
		psr->mfh = 0;
		task->thread.flags |= IA64_THREAD_FPH_VALID;
		ia64_save_fpu(&task->thread.fph[0]);
	}
	preempt_enable();
}