patch-2.3.99-pre6 linux/net/ipv4/proc.c
Next file: linux/net/ipv4/raw.c
Previous file: linux/net/ipv4/netfilter/ipt_LOG.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Mon Apr 24 13:59:57 2000
- Orig file:
v2.3.99-pre5/linux/net/ipv4/proc.c
- Orig date:
Fri Jan 28 15:09:09 2000
diff -u --recursive --new-file v2.3.99-pre5/linux/net/ipv4/proc.c linux/net/ipv4/proc.c
@@ -7,7 +7,7 @@
* PROC file system. It is mainly used for debugging and
* statistics.
*
- * Version: $Id: proc.c,v 1.41 2000/01/21 23:45:57 davem Exp $
+ * Version: $Id: proc.c,v 1.42 2000/04/16 01:11:37 davem Exp $
*
* Authors: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
* Gerald J. Heim, <heim@peanuts.informatik.uni-tuebingen.de>
@@ -56,7 +56,7 @@
int cpu;
for (cpu=0; cpu<smp_num_cpus; cpu++)
- res += proto->stats[cpu].inuse;
+ res += proto->stats[cpu_logical_map(cpu)].inuse;
return res;
}
@@ -99,8 +99,10 @@
sz /= sizeof(unsigned long);
- for (i=0; i<2*smp_num_cpus; i++)
- res += begin[i*sz + nr];
+ for (i=0; i<smp_num_cpus; i++) {
+ res += begin[2*cpu_logical_map(i)*sz + nr];
+ res += begin[(2*cpu_logical_map(i)+1)*sz + nr];
+ }
return res;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)