diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2007-07-09 12:52:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-07-09 12:52:00 -0400 |
commit | 172ba844a8851c3edd13c0a979cdf46bd5e3cc1a (patch) | |
tree | 5e1bfd820c8e68fc28450688f166f4136351e1e1 /kernel/fork.c | |
parent | b27f03d4bdc145a09fb7b0c0e004b29f1ee555fa (diff) |
sched: update delay-accounting to use CFS's precise stats
update delay-accounting to use CFS's precise stats.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 73ad5cda1bcd..da3a155bba0d 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -877,7 +877,7 @@ static inline int copy_signal(unsigned long clone_flags, struct task_struct * ts | |||
877 | sig->nvcsw = sig->nivcsw = sig->cnvcsw = sig->cnivcsw = 0; | 877 | sig->nvcsw = sig->nivcsw = sig->cnvcsw = sig->cnivcsw = 0; |
878 | sig->min_flt = sig->maj_flt = sig->cmin_flt = sig->cmaj_flt = 0; | 878 | sig->min_flt = sig->maj_flt = sig->cmin_flt = sig->cmaj_flt = 0; |
879 | sig->inblock = sig->oublock = sig->cinblock = sig->coublock = 0; | 879 | sig->inblock = sig->oublock = sig->cinblock = sig->coublock = 0; |
880 | sig->sched_time = 0; | 880 | sig->sum_sched_runtime = 0; |
881 | INIT_LIST_HEAD(&sig->cpu_timers[0]); | 881 | INIT_LIST_HEAD(&sig->cpu_timers[0]); |
882 | INIT_LIST_HEAD(&sig->cpu_timers[1]); | 882 | INIT_LIST_HEAD(&sig->cpu_timers[1]); |
883 | INIT_LIST_HEAD(&sig->cpu_timers[2]); | 883 | INIT_LIST_HEAD(&sig->cpu_timers[2]); |
@@ -1040,7 +1040,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1040 | 1040 | ||
1041 | p->utime = cputime_zero; | 1041 | p->utime = cputime_zero; |
1042 | p->stime = cputime_zero; | 1042 | p->stime = cputime_zero; |
1043 | p->sched_time = 0; | 1043 | |
1044 | #ifdef CONFIG_TASK_XACCT | 1044 | #ifdef CONFIG_TASK_XACCT |
1045 | p->rchar = 0; /* I/O counter: bytes read */ | 1045 | p->rchar = 0; /* I/O counter: bytes read */ |
1046 | p->wchar = 0; /* I/O counter: bytes written */ | 1046 | p->wchar = 0; /* I/O counter: bytes written */ |