aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/sched.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 082d7619b3a1..79392916d6c9 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -2208,8 +2208,6 @@ void thread_group_cputimer(struct task_struct *tsk, struct task_cputime *times)
2208 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; 2208 struct thread_group_cputimer *cputimer = &tsk->signal->cputimer;
2209 unsigned long flags; 2209 unsigned long flags;
2210 2210
2211 WARN_ON(!cputimer->running);
2212
2213 spin_lock_irqsave(&cputimer->lock, flags); 2211 spin_lock_irqsave(&cputimer->lock, flags);
2214 *times = cputimer->cputime; 2212 *times = cputimer->cputime;
2215 spin_unlock_irqrestore(&cputimer->lock, flags); 2213 spin_unlock_irqrestore(&cputimer->lock, flags);