]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/core/utils.c
Remove obsolete #include <linux/config.h>
[linux-2.6-omap-h63xx.git] / net / core / utils.c
index ac1d1fcf8673f63158691ee0004952b803206f84..4f96f389243d7d6322288609f6477c74eab5ac09 100644 (file)
@@ -121,7 +121,7 @@ void __init net_random_init(void)
 {
        int i;
 
-       for (i = 0; i < NR_CPUS; i++) {
+       for_each_possible_cpu(i) {
                struct nrnd_state *state = &per_cpu(net_rand_state,i);
                __net_srandom(state, i+jiffies);
        }
@@ -133,7 +133,7 @@ static int net_random_reseed(void)
        unsigned long seed[NR_CPUS];
 
        get_random_bytes(seed, sizeof(seed));
-       for (i = 0; i < NR_CPUS; i++) {
+       for_each_possible_cpu(i) {
                struct nrnd_state *state = &per_cpu(net_rand_state,i);
                __net_srandom(state, seed[i]);
        }