summaryrefslogtreecommitdiffstats
path: root/module/spl/spl-thread.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2012-06-29 11:54:52 -0700
committerBrian Behlendorf <[email protected]>2012-07-02 09:33:09 -0700
commit44e406d712bedc893e053ab3a7db8ff8a8be0790 (patch)
tree1624271a3147daa5ce9c4c65948b398ce8bbe5bd /module/spl/spl-thread.c
parent50fe7a010c085f672d8dc6b8ef44fcadf4f704b0 (diff)
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 <[email protected]> Closes #119
Diffstat (limited to 'module/spl/spl-thread.c')
-rw-r--r--module/spl/spl-thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/spl/spl-thread.c b/module/spl/spl-thread.c
index b1aa8119b..9f6e22379 100644
--- a/module/spl/spl-thread.c
+++ b/module/spl/spl-thread.c
@@ -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));