func = tp->tp_func;
args = tp->tp_args;
set_current_state(tp->tp_state);
- set_user_nice((kthread_t *)get_current(), PRIO_TO_NICE(tp->tp_pri));
+ set_user_nice((kthread_t *)current, PRIO_TO_NICE(tp->tp_pri));
kmem_free(tp->tp_name, tp->tp_name_size);
kmem_free(tp, sizeof(thread_priv_t));