git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
net
/
ipv6
/
proc.c
diff --git
a/net/ipv6/proc.c
b/net/ipv6/proc.c
index
efee7a6
..
4238b1e
100644
(file)
--- a/
net/ipv6/proc.c
+++ b/
net/ipv6/proc.c
@@
-17,6
+17,7
@@
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
+#include <linux/config.h>
#include <linux/sched.h>
#include <linux/socket.h>
#include <linux/net.h>
#include <linux/sched.h>
#include <linux/socket.h>
#include <linux/net.h>
@@
-37,7
+38,7
@@
static int fold_prot_inuse(struct proto *proto)
int res = 0;
int cpu;
int res = 0;
int cpu;
- for_each_
possible_
cpu(cpu)
+ for_each_cpu(cpu)
res += proto->stats[cpu].inuse;
return res;
res += proto->stats[cpu].inuse;
return res;
@@
-139,7
+140,7
@@
fold_field(void *mib[], int offt)
unsigned long res = 0;
int i;
unsigned long res = 0;
int i;
- for_each_
possible_
cpu(i) {
+ for_each_cpu(i) {
res += *(((unsigned long *)per_cpu_ptr(mib[0], i)) + offt);
res += *(((unsigned long *)per_cpu_ptr(mib[1], i)) + offt);
}
res += *(((unsigned long *)per_cpu_ptr(mib[0], i)) + offt);
res += *(((unsigned long *)per_cpu_ptr(mib[1], i)) + offt);
}