projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] percpu data: only iterate over possible CPUs
[profile/ivi/kernel-x86-ivi.git]
/
net
/
socket.c
diff --git
a/net/socket.c
b/net/socket.c
index
b38a263
..
a00851f
100644
(file)
--- a/
net/socket.c
+++ b/
net/socket.c
@@
-2078,7
+2078,7
@@
void socket_seq_show(struct seq_file *seq)
int cpu;
int counter = 0;
- for
(cpu = 0; cpu < NR_CPUS; cpu++
)
+ for
_each_cpu(cpu
)
counter += per_cpu(sockets_in_use, cpu);
/* It can be negative, by the way. 8) */