diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-09-14 11:03:52 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-14 11:02:43 -0400 |
commit | 0a8eaa4f9b58759595a1bfe13a1295fdc25ba026 (patch) | |
tree | d8dcf96934df5855853ac37b55dcd553ce6e9edb /include | |
parent | 430b5294bd72c085c730e1e4b86580f164d976bf (diff) |
timers: fix itimer/many thread hang, fix #2
fix the UP build:
In file included from arch/x86/kernel/asm-offsets_32.c:9,
from arch/x86/kernel/asm-offsets.c:3:
include/linux/sched.h: In function ‘thread_group_cputime_clone_thread’:
include/linux/sched.h:2272: warning: no return statement in function returning non-void
include/linux/sched.h: In function ‘thread_group_cputime_account_user’:
include/linux/sched.h:2284: error: invalid type argument of ‘->’ (have ‘struct task_cputime’)
include/linux/sched.h:2284: error: invalid type argument of ‘->’ (have ‘struct task_cputime’)
include/linux/sched.h: In function ‘thread_group_cputime_account_system’:
include/linux/sched.h:2291: error: invalid type argument of ‘->’ (have ‘struct task_cputime’)
include/linux/sched.h:2291: error: invalid type argument of ‘->’ (have ‘struct task_cputime’)
include/linux/sched.h: In function ‘thread_group_cputime_account_exec_runtime’:
include/linux/sched.h:2298: error: invalid type argument of ‘->’ (have ‘struct task_cputime’)
distcc[14501] ERROR: compile arch/x86/kernel/asm-offsets.c on a/30 failed
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-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 */ |