summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorJohn Stultz <johnstul@us.ibm.com>2009-07-03 13:29:58 (GMT)
committerScott Wood <scottwood@freescale.com>2014-05-14 18:38:10 (GMT)
commitdae47b59d3bc2488566afe08102abf2c2a109fec (patch)
tree19721d0233277a63c2e95210ff2a040206be3510 /kernel/fork.c
parent59d5ee0f52333952e088117e8b0f542cc8b1cf5f (diff)
downloadlinux-fsl-qoriq-dae47b59d3bc2488566afe08102abf2c2a109fec.tar.xz
posix-timers: thread posix-cpu-timers on -rt
posix-cpu-timer code takes non -rt safe locks in hard irq context. Move it to a thread. [ 3.0 fixes from Peter Zijlstra <peterz@infradead.org> ] Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index afe158e..3ac5af8 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1107,6 +1107,9 @@ void mm_init_owner(struct mm_struct *mm, struct task_struct *p)
*/
static void posix_cpu_timers_init(struct task_struct *tsk)
{
+#ifdef CONFIG_PREEMPT_RT_BASE
+ tsk->posix_timer_list = NULL;
+#endif
tsk->cputime_expires.prof_exp = 0;
tsk->cputime_expires.virt_exp = 0;
tsk->cputime_expires.sched_exp = 0;