diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 5d10fa0b6002..8981e52c714f 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2201,18 +2201,7 @@ static inline int spin_needbreak(spinlock_t *lock) | |||
2201 | * Thread group CPU time accounting. | 2201 | * Thread group CPU time accounting. |
2202 | */ | 2202 | */ |
2203 | void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times); | 2203 | void thread_group_cputime(struct task_struct *tsk, struct task_cputime *times); |
2204 | 2204 | void thread_group_cputimer(struct task_struct *tsk, struct task_cputime *times); | |
2205 | static inline | ||
2206 | void thread_group_cputimer(struct task_struct *tsk, struct task_cputime *times) | ||
2207 | { | ||
2208 | struct thread_group_cputimer *cputimer = &tsk->signal->cputimer; | ||
2209 | unsigned long flags; | ||
2210 | |||
2211 | spin_lock_irqsave(&cputimer->lock, flags); | ||
2212 | cputimer->running = 1; | ||
2213 | *times = cputimer->cputime; | ||
2214 | spin_unlock_irqrestore(&cputimer->lock, flags); | ||
2215 | } | ||
2216 | 2205 | ||
2217 | static inline void thread_group_cputime_init(struct signal_struct *sig) | 2206 | static inline void thread_group_cputime_init(struct signal_struct *sig) |
2218 | { | 2207 | { |