Eric Dumazet 88a2a4ac6b [PATCH] percpu data: only iterate over possible CPUs
percpu_data blindly allocates bootmem memory to store NR_CPUS instances of
cpudata, instead of allocating memory only for possible cpus.

As a preparation for changing that, we need to convert various 0 -> NR_CPUS
loops to use for_each_cpu().

(The above only applies to users of asm-generic/percpu.h.  powerpc has gone it
alone and is presently only allocating memory for present CPUs, so it's
currently corrupting memory).

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Cc: Jens Axboe <axboe@suse.de>
Cc: Anton Blanchard <anton@samba.org>
Acked-by: William Irwin <wli@holomorphy.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-02-05 11:06:51 -08:00
..
2006-01-11 18:42:14 -08:00
2006-01-11 18:42:14 -08:00
2006-01-11 18:42:14 -08:00
2005-08-29 16:01:32 -07:00
2006-01-11 18:42:14 -08:00
2005-08-29 16:08:31 -07:00
2006-01-03 14:38:34 -08:00
2006-01-11 18:42:14 -08:00
2006-01-09 14:16:28 -08:00
2006-01-11 18:42:14 -08:00
2006-01-11 18:42:14 -08:00
2006-01-03 13:10:28 -08:00
2005-08-29 15:33:20 -07:00
2006-01-18 19:20:30 -08:00
2006-01-03 13:10:27 -08:00
2006-01-03 16:03:49 -08:00
2006-01-03 13:11:09 -08:00
2006-01-30 20:54:39 -08:00
2006-01-03 16:03:49 -08:00
2005-11-10 17:13:47 -08:00
2006-01-04 13:59:32 -08:00