diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 26d7a5f2d0ba..ed355f02d329 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2251,6 +2251,7 @@ static inline void thread_group_cputime_free(struct signal_struct *sig) | |||
2251 | static inline int thread_group_cputime_clone_thread(struct task_struct *curr, | 2251 | static inline int thread_group_cputime_clone_thread(struct task_struct *curr, |
2252 | struct task_struct *tsk) | 2252 | struct task_struct *tsk) |
2253 | { | 2253 | { |
2254 | return 0; | ||
2254 | } | 2255 | } |
2255 | 2256 | ||
2256 | static inline void thread_group_cputime(struct task_struct *tsk, | 2257 | static inline void thread_group_cputime(struct task_struct *tsk, |
@@ -2263,21 +2264,21 @@ static inline void thread_group_cputime_account_user( | |||
2263 | struct thread_group_cputime *tgtimes, | 2264 | struct thread_group_cputime *tgtimes, |
2264 | cputime_t cputime) | 2265 | cputime_t cputime) |
2265 | { | 2266 | { |
2266 | tgtimes->totals->utime = cputime_add(tgtimes->totals->utime, cputime); | 2267 | tgtimes->totals.utime = cputime_add(tgtimes->totals.utime, cputime); |
2267 | } | 2268 | } |
2268 | 2269 | ||
2269 | static inline void thread_group_cputime_account_system( | 2270 | static inline void thread_group_cputime_account_system( |
2270 | struct thread_group_cputime *tgtimes, | 2271 | struct thread_group_cputime *tgtimes, |
2271 | cputime_t cputime) | 2272 | cputime_t cputime) |
2272 | { | 2273 | { |
2273 | tgtimes->totals->stime = cputime_add(tgtimes->totals->stime, cputime); | 2274 | tgtimes->totals.stime = cputime_add(tgtimes->totals.stime, cputime); |
2274 | } | 2275 | } |
2275 | 2276 | ||
2276 | static inline void thread_group_cputime_account_exec_runtime( | 2277 | static inline void thread_group_cputime_account_exec_runtime( |
2277 | struct thread_group_cputime *tgtimes, | 2278 | struct thread_group_cputime *tgtimes, |
2278 | unsigned long long ns) | 2279 | unsigned long long ns) |
2279 | { | 2280 | { |
2280 | tgtimes->totals->sum_exec_runtime += ns; | 2281 | tgtimes->totals.sum_exec_runtime += ns; |
2281 | } | 2282 | } |
2282 | 2283 | ||
2283 | #endif /* CONFIG_SMP */ | 2284 | #endif /* CONFIG_SMP */ |