diff options
author | John Stultz <johnstul@us.ibm.com> | 2009-07-03 13:29:58 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2015-02-13 22:20:30 (GMT) |
commit | d0af1a5f73371bb6f30bbbdb14a1dbec56751fac (patch) | |
tree | a48474c1259e4070aaa9a71d6f1bf12b5d01db1f /kernel/fork.c | |
parent | 7118689f1749858fa999b08650327480cb760e5e (diff) | |
download | linux-fsl-qoriq-d0af1a5f73371bb6f30bbbdb14a1dbec56751fac.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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 599033b..d3394e7 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1117,6 +1117,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; |