Merge branches 'perf-urgent-for-linus' and 'timers-urgent-for-linus' of git://git...
[cascardo/linux.git] / arch / x86 / kernel / process.c
index 2915d54..96becbb 100644 (file)
@@ -97,10 +97,9 @@ int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
 /*
  * Free current thread data structures etc..
  */
-void exit_thread(void)
+void exit_thread(struct task_struct *tsk)
 {
-       struct task_struct *me = current;
-       struct thread_struct *t = &me->thread;
+       struct thread_struct *t = &tsk->thread;
        unsigned long *bp = t->io_bitmap_ptr;
        struct fpu *fpu = &t->fpu;