diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-10-14 03:11:43 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-10-14 03:11:46 -0400 |
commit | ed859ed3b0f9893c6bce3708e8928341c15699b9 (patch) | |
tree | 59c507f00bc13becb4accdd64fdc01ece08b4645 /kernel/sched.c | |
parent | a8027073eb127cd207070891374b5c54c2ce3d23 (diff) | |
parent | 53eeb64e808971207350386121f4bab12fa2f45f (diff) |
Merge branch 'linus' into sched/core
Merge reason: update from -rc5 to -almost-final
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 4ad473814350..2111491f6424 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -3510,9 +3510,9 @@ void task_times(struct task_struct *p, cputime_t *ut, cputime_t *st) | |||
3510 | rtime = nsecs_to_cputime(p->se.sum_exec_runtime); | 3510 | rtime = nsecs_to_cputime(p->se.sum_exec_runtime); |
3511 | 3511 | ||
3512 | if (total) { | 3512 | if (total) { |
3513 | u64 temp; | 3513 | u64 temp = rtime; |
3514 | 3514 | ||
3515 | temp = (u64)(rtime * utime); | 3515 | temp *= utime; |
3516 | do_div(temp, total); | 3516 | do_div(temp, total); |
3517 | utime = (cputime_t)temp; | 3517 | utime = (cputime_t)temp; |
3518 | } else | 3518 | } else |
@@ -3543,9 +3543,9 @@ void thread_group_times(struct task_struct *p, cputime_t *ut, cputime_t *st) | |||
3543 | rtime = nsecs_to_cputime(cputime.sum_exec_runtime); | 3543 | rtime = nsecs_to_cputime(cputime.sum_exec_runtime); |
3544 | 3544 | ||
3545 | if (total) { | 3545 | if (total) { |
3546 | u64 temp; | 3546 | u64 temp = rtime; |
3547 | 3547 | ||
3548 | temp = (u64)(rtime * cputime.utime); | 3548 | temp *= cputime.utime; |
3549 | do_div(temp, total); | 3549 | do_div(temp, total); |
3550 | utime = (cputime_t)temp; | 3550 | utime = (cputime_t)temp; |
3551 | } else | 3551 | } else |