aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/kernel/process.c')
-rw-r--r--arch/ia64/kernel/process.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c
index b51514957620..aae6c4dc7ae7 100644
--- a/arch/ia64/kernel/process.c
+++ b/arch/ia64/kernel/process.c
@@ -570,22 +570,22 @@ flush_thread (void)
570} 570}
571 571
572/* 572/*
573 * Clean up state associated with current thread. This is called when 573 * Clean up state associated with a thread. This is called when
574 * the thread calls exit(). 574 * the thread calls exit().
575 */ 575 */
576void 576void
577exit_thread (void) 577exit_thread (struct task_struct *tsk)
578{ 578{
579 579
580 ia64_drop_fpu(current); 580 ia64_drop_fpu(tsk);
581#ifdef CONFIG_PERFMON 581#ifdef CONFIG_PERFMON
582 /* if needed, stop monitoring and flush state to perfmon context */ 582 /* if needed, stop monitoring and flush state to perfmon context */
583 if (current->thread.pfm_context) 583 if (tsk->thread.pfm_context)
584 pfm_exit_thread(current); 584 pfm_exit_thread(tsk);
585 585
586 /* free debug register resources */ 586 /* free debug register resources */
587 if (current->thread.flags & IA64_THREAD_DBG_VALID) 587 if (tsk->thread.flags & IA64_THREAD_DBG_VALID)
588 pfm_release_debug_registers(current); 588 pfm_release_debug_registers(tsk);
589#endif 589#endif
590} 590}
591 591