summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2013-07-23 13:45:51 (GMT)
committerScott Wood <scottwood@freescale.com>2015-02-13 22:20:07 (GMT)
commitb9c665d32bcbc8d39eddeb31649f5ca9ff1a378c (patch)
treeb95a0be6ce0b9df63d9da5d4f114c426038e30ff /kernel/fork.c
parentfa5f1ad2efe7b9e1b36a37e99b7c99d59b4b92d2 (diff)
downloadlinux-fsl-qoriq-b9c665d32bcbc8d39eddeb31649f5ca9ff1a378c.tar.xz
vtime-split-lock-and-seqcount.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 5b48612..ec448fb 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1252,7 +1252,8 @@ static struct task_struct *copy_process(unsigned long clone_flags,
p->prev_cputime.utime = p->prev_cputime.stime = 0;
#endif
#ifdef CONFIG_VIRT_CPU_ACCOUNTING_GEN
- seqlock_init(&p->vtime_seqlock);
+ raw_spin_lock_init(&p->vtime_lock);
+ seqcount_init(&p->vtime_seq);
p->vtime_snap = 0;
p->vtime_snap_whence = VTIME_SLEEPING;
#endif