PowerPC Compatibility

Usage of get_current() is not supported across all architectures.
The correct interface to use is the '#define current' which will
map to the appropriate function, usually current_thread_info().

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #119
This commit is contained in:
Brian Behlendorf
2012-06-29 11:54:52 -07:00
parent 50fe7a010c
commit 44e406d712
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ thread_generic_wrapper(void *arg)
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));