X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fsocket.c;h=a00851f981dbfcb17b26f64d7bfc2a5e64e31a5d;hb=b5173119ff10c5538e92a7957a50887ae170b8da;hp=b38a263853c32038b07fe7dcb9dae457d4456722;hpb=fb7ffeb11bb7e9e75dc83ff67a4925c270e0fa3c;p=linux-2.6 diff --git a/net/socket.c b/net/socket.c index b38a263853..a00851f981 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) */