Merge branch 'for-4.7-zac' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
[deliverable/linux.git] / arch / ia64 / kernel / process.c
index b51514957620bef1d703ddf450700750b1dfd077..aae6c4dc7ae7f5f51a328411af58c94e21c0cd88 100644 (file)
@@ -570,22 +570,22 @@ flush_thread (void)
 }
 
 /*
- * Clean up state associated with current thread.  This is called when
+ * Clean up state associated with a thread.  This is called when
  * the thread calls exit().
  */
 void
-exit_thread (void)
+exit_thread (struct task_struct *tsk)
 {
 
-       ia64_drop_fpu(current);
+       ia64_drop_fpu(tsk);
 #ifdef CONFIG_PERFMON
        /* if needed, stop monitoring and flush state to perfmon context */
-       if (current->thread.pfm_context)
-               pfm_exit_thread(current);
+       if (tsk->thread.pfm_context)
+               pfm_exit_thread(tsk);
 
        /* free debug register resources */
-       if (current->thread.flags & IA64_THREAD_DBG_VALID)
-               pfm_release_debug_registers(current);
+       if (tsk->thread.flags & IA64_THREAD_DBG_VALID)
+               pfm_release_debug_registers(tsk);
 #endif
 }
 
This page took 0.027477 seconds and 5 git commands to generate.