summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-03 08:44:56 -0500
committerDaniel Wagner <wagi@monom.org>2018-07-26 06:42:53 +0200
commit45dff395e1b4a825f3dea0af94de89e0c444dc6f (patch)
treefbf9cab85f90c710f7ffed47a39555339542c6e1 /kernel/fork.c
parentb743284bea078149705084dcc62400ac7177762c (diff)
downloadlinux-rt-45dff395e1b4a825f3dea0af94de89e0c444dc6f.tar.gz
signals: Allow rt tasks to cache one sigqueue struct
To avoid allocation allow rt tasks to cache one sigqueue struct in task struct. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index a8bc2c2d9582..01b6ed6bd30e 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1375,6 +1375,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
spin_lock_init(&p->alloc_lock);
init_sigpending(&p->pending);
+ p->sigqueue_cache = NULL;
p->utime = p->stime = p->gtime = 0;
p->utimescaled = p->stimescaled = 0;