aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/ibmphp_hpc.c
diff options
context:
space:
mode:
authorAndrew Morton <[email protected]>2006-03-23 11:01:05 +0000
committerLinus Torvalds <[email protected]>2006-03-23 15:38:17 +0000
commit394e3902c55e667945f6f1c2bdbc59842cce70f7 (patch)
treef4bca0bdc0c291fda6f6949265aacec0669b9084 /drivers/pci/hotplug/ibmphp_hpc.c
parent[PATCH] Only allocate percpu data for possible CPUs (diff)
downloadkernel-394e3902c55e667945f6f1c2bdbc59842cce70f7.tar.gz
kernel-394e3902c55e667945f6f1c2bdbc59842cce70f7.zip
[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 <[email protected]> Cc: David Howells <[email protected]> Acked-by: Kyle McMartin <[email protected]> Cc: Anton Blanchard <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Paul Mundt <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: William Lee Irwin III <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Christian Zankel <[email protected]> Cc: Philippe Elie <[email protected]> Cc: Nathan Scott <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Eric Dumazet <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_hpc.c')
0 files changed, 0 insertions, 0 deletions