diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-05-31 16:59:16 +0200 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2011-12-28 16:25:36 -0600 |
commit | 9dfc6d9ed139157e9957f037945a970b530419f7 (patch) | |
tree | 9ff811d34b3f5ddd3635964f228dba19ac897709 /kernel/fork.c | |
parent | b89376378f9a89f59f9feb940f422ce1e47cdd92 (diff) |
sched-delay-put-task.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index a636fa63b46e..6679093b31e2 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -196,7 +196,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 |