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>2014-04-10 00:18:35 (GMT)
commit77f0376e155bf56e977e36faf5f755c3dce9354f (patch)
treebf37a8f1073c7776fec01d28f8348943beddee4c /kernel/fork.c
parent7d646711764bb602b8c4b65bd336a83ff5fd3596 (diff)
downloadlinux-fsl-qoriq-77f0376e155bf56e977e36faf5f755c3dce9354f.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 458953c..2bc18dd 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1242,7 +1242,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