patch-2.1.79 linux/arch/i386/kernel/smp.c
Next file: linux/arch/i386/lib/Makefile
Previous file: linux/arch/i386/kernel/i386_ksyms.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Mon Jan 12 14:47:46 1998
- Orig file:
v2.1.78/linux/arch/i386/kernel/smp.c
- Orig date:
Fri Jan 2 14:37:01 1998
diff -u --recursive --new-file v2.1.78/linux/arch/i386/kernel/smp.c linux/arch/i386/kernel/smp.c
@@ -55,7 +55,7 @@
extern unsigned long start_kernel, _etext;
extern void update_one_process( struct task_struct *p,
unsigned long ticks, unsigned long user,
- unsigned long system);
+ unsigned long system, int cpu);
/*
* Some notes on processor bugs:
*
@@ -1346,8 +1346,7 @@
irq_enter(cpu, 0);
if (p->pid) {
-
- update_one_process(p, 1, user, system);
+ update_one_process(p, 1, user, system, cpu);
p->counter -= 1;
if (p->counter < 0) {
@@ -1360,6 +1359,7 @@
kstat.cpu_user += user;
kstat.cpu_system += system;
+ kstat.per_cpu_system[cpu] += system;
} else {
#ifdef __SMP_PROF__
@@ -1382,7 +1382,7 @@
* we might want to decouple profiling from the 'long path',
* and do the profiling totally in assembly.
*
- * Currently this isnt too much of an issue (performancewise),
+ * Currently this isnt too much of an issue (performance wise),
* we can take more than 100K local irqs per second on a 100 MHz P5.
*/
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov