patch-2.1.79 linux/kernel/sched.c
Next file: linux/kernel/sysctl.c
Previous file: linux/kernel/fork.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Mon Jan 12 14:46:27 1998
- Orig file:
v2.1.78/linux/kernel/sched.c
- Orig date:
Fri Jan 2 14:37:03 1998
diff -u --recursive --new-file v2.1.78/linux/kernel/sched.c linux/kernel/sched.c
@@ -1031,8 +1031,10 @@
}
void update_one_process(struct task_struct *p,
- unsigned long ticks, unsigned long user, unsigned long system)
+ unsigned long ticks, unsigned long user, unsigned long system, int cpu)
{
+ p->per_cpu_utime[cpu] += user;
+ p->per_cpu_stime[cpu] += system;
do_process_times(p, user, system);
do_it_virt(p, user);
do_it_prof(p, ticks);
@@ -1058,7 +1060,7 @@
kstat.cpu_user += user;
kstat.cpu_system += system;
}
- update_one_process(p, ticks, user, system);
+ update_one_process(p, ticks, user, system, 0);
#endif
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov