Andrew Morton 394e3902c5 [PATCH] more for_each_cpu() conversions
When we stop allocating percpu memory for not-possible CPUs we must not touch
the percpu data for not-possible CPUs at all.  The correct way of doing this
is to test cpu_possible() or to use for_each_cpu().

This patch is a kernel-wide sweep of all instances of NR_CPUS.  I found very
few instances of this bug, if any.  But the patch converts lots of open-coded
test to use the preferred helper macros.

Cc: Mikael Starvik <starvik@axis.com>
Cc: David Howells <dhowells@redhat.com>
Acked-by: Kyle McMartin <kyle@parisc-linux.org>
Cc: Anton Blanchard <anton@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: William Lee Irwin III <wli@holomorphy.com>
Cc: Andi Kleen <ak@muc.de>
Cc: Christian Zankel <chris@zankel.net>
Cc: Philippe Elie <phil.el@wanadoo.fr>
Cc: Nathan Scott <nathans@sgi.com>
Cc: Jens Axboe <axboe@suse.de>
Cc: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-23 07:38:17 -08:00
..
2006-02-13 15:53:41 -08:00
2006-03-03 22:22:45 -05:00
2006-03-16 19:27:08 -05:00
2006-03-20 22:32:28 -08:00
2006-02-09 14:17:05 -05:00
2006-03-03 22:22:45 -05:00
2006-03-03 21:33:57 -05:00
2006-03-21 16:00:53 -05:00
2006-02-27 20:12:23 -05:00
2006-03-03 22:22:45 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-03-03 21:33:57 -05:00
2006-03-20 22:23:58 -08:00
2005-04-16 15:20:36 -07:00
2006-01-28 21:42:31 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-06 22:47:00 -04:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-26 22:10:39 -05:00
2005-10-31 13:37:12 +11:00
2005-04-16 15:20:36 -07:00
2006-03-03 21:33:57 -05:00
2006-03-20 17:55:25 -08:00
2006-03-20 17:55:25 -08:00
2006-03-20 22:34:09 -08:00
2006-03-20 22:34:09 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-03-03 21:33:57 -05:00
2005-04-16 15:20:36 -07:00
2006-03-11 13:35:31 -05:00
2005-04-16 15:20:36 -07:00
2005-05-15 18:31:07 -04:00
2005-04-16 15:20:36 -07:00
2006-03-16 19:27:08 -05:00
2006-03-03 21:33:57 -05:00
2005-04-16 15:20:36 -07:00
2006-03-03 21:33:57 -05:00
2005-07-21 14:16:54 -07:00
2005-04-16 15:20:36 -07:00
2006-03-03 21:33:57 -05:00
2006-02-07 02:04:33 -05:00
2005-04-16 15:20:36 -07:00
2006-03-03 21:33:57 -05:00
2006-02-09 14:17:05 -05:00
2005-04-16 15:20:36 -07:00
2006-01-12 09:09:04 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-11-11 05:47:04 -05:00
2005-10-28 16:07:30 -04:00
2005-04-16 15:20:36 -07:00
2006-02-01 08:53:10 -08:00
2005-04-16 15:20:36 -07:00
2005-10-31 13:37:12 +11:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-03-22 20:28:04 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-09-14 08:46:21 -04:00
2005-04-16 15:20:36 -07:00
2005-10-28 08:16:51 -07:00
2005-10-28 08:16:51 -07:00
2006-03-04 12:14:56 -05:00
2006-03-03 21:33:57 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-03-03 22:22:45 -05:00
2006-03-03 21:33:57 -05:00
2006-03-03 21:33:57 -05:00
2005-09-14 09:18:21 -04:00
2005-04-16 15:20:36 -07:00
2006-03-04 12:07:07 -05:00
2006-03-02 14:26:30 -05:00
2005-11-11 08:31:35 -05:00
2006-03-03 21:33:57 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-03-03 21:33:57 -05:00
2006-03-22 20:30:45 -05:00
2006-03-21 16:00:51 -05:00
2006-03-21 16:00:50 -05:00
2006-03-22 20:30:45 -05:00
2006-03-22 20:30:45 -05:00
2005-04-16 15:20:36 -07:00
2006-01-10 08:01:59 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-03-03 22:22:45 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-01-12 09:09:04 -08:00
2005-10-28 08:16:51 -07:00
2005-10-28 08:16:51 -07:00
2006-03-03 22:22:45 -05:00
2006-03-20 22:34:25 -08:00
2006-03-20 22:34:25 -08:00
2005-04-16 15:20:36 -07:00
2005-04-24 20:35:20 -07:00
2005-04-24 20:35:20 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-03-22 01:07:53 -08:00
2006-03-20 22:29:32 -08:00
2005-04-16 15:20:36 -07:00
2006-03-11 18:49:13 -08:00
2005-04-16 15:20:36 -07:00
2006-03-03 21:33:57 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00