diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2013-07-23 13:45:51 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-05-14 18:37:43 (GMT) |
commit | 4775f3736954b34f786dc2f1b3000549be0419c3 (patch) | |
tree | d4b6b9576e9e7a36bb7e8452e17df8701350d6ee /kernel/fork.c | |
parent | 6d5cb1c7ed449031886f0c85e40094fcda863474 (diff) | |
download | linux-fsl-qoriq-4775f3736954b34f786dc2f1b3000549be0419c3.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.c | 3 |
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 |