summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-05-31 16:59:16 +0200
committerClark Williams <williams@redhat.com>2012-04-10 16:40:32 -0500
commit3e615e73b25a2bb6a256b9d064c34862218543b7 (patch)
tree03fb51680d7eb308a1696c283ec1045431b56e58 /kernel
parent7b1e3966f3c79755a9a1e7253d3f90e2fcda01df (diff)
sched-delay-put-task.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index ebff67cba6c1..e8c752b08303 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -201,7 +201,18 @@ void __put_task_struct(struct task_struct *tsk)
if (!profile_handoff_task(tsk))
free_task(tsk);
}
+#ifndef CONFIG_PREEMPT_RT_BASE
EXPORT_SYMBOL_GPL(__put_task_struct);
+#else
+void __put_task_struct_cb(struct rcu_head *rhp)
+{
+ struct task_struct *tsk = container_of(rhp, struct task_struct, rcu);
+
+ __put_task_struct(tsk);
+
+}
+EXPORT_SYMBOL_GPL(__put_task_struct_cb);
+#endif
/*
* macro override instead of weak attribute alias, to workaround