X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fcore%2Futils.c;h=fdc4f38bc46ccfbcc86c4a36698489cfcd0ba08b;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=4f96f389243d7d6322288609f6477c74eab5ac09;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/net/core/utils.c b/net/core/utils.c index 4f96f3892..fdc4f38bc 100644 --- a/net/core/utils.c +++ b/net/core/utils.c @@ -121,7 +121,7 @@ void __init net_random_init(void) { int i; - for_each_possible_cpu(i) { + for_each_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_each_possible_cpu(i) { + for_each_cpu(i) { struct nrnd_state *state = &per_cpu(net_rand_state,i); __net_srandom(state, seed[i]); }