X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fsocket.c;h=a00851f981dbfcb17b26f64d7bfc2a5e64e31a5d;hb=3759fa9c55923f719ae944a3f8fbb029b36f759d;hp=b38a263853c32038b07fe7dcb9dae457d4456722;hpb=944d79559d154c12becde0dab327016cf438f46c;p=~andy%2Flinux diff --git a/net/socket.c b/net/socket.c index b38a263853c..a00851f981d 100644 --- 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) */