]> err.no Git - linux-2.6/commit
[PATCH] more for_each_cpu() conversions
authorAndrew Morton <akpm@osdl.org>
Thu, 23 Mar 2006 11:01:05 +0000 (03:01 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 23 Mar 2006 15:38:17 +0000 (07:38 -0800)
commit394e3902c55e667945f6f1c2bdbc59842cce70f7
treef4bca0bdc0c291fda6f6949265aacec0669b9084
parent63872f87a151413100678f110d1556026002809e
[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>
42 files changed:
arch/cris/kernel/irq.c
arch/frv/kernel/irq.c
arch/i386/kernel/cpu/cpufreq/powernow-k8.c
arch/i386/kernel/io_apic.c
arch/i386/kernel/nmi.c
arch/i386/oprofile/nmi_int.c
arch/m32r/kernel/irq.c
arch/mips/kernel/irq.c
arch/mips/kernel/smp.c
arch/mips/sgi-ip27/ip27-irq.c
arch/parisc/kernel/smp.c
arch/powerpc/kernel/irq.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/kernel/setup_32.c
arch/powerpc/platforms/powermac/smp.c
arch/ppc/kernel/setup.c
arch/s390/kernel/smp.c
arch/sh/kernel/irq.c
arch/sh/kernel/setup.c
arch/sh64/kernel/irq.c
arch/sparc/kernel/irq.c
arch/sparc/kernel/smp.c
arch/sparc/kernel/sun4d_irq.c
arch/sparc/kernel/sun4d_smp.c
arch/sparc/kernel/sun4m_smp.c
arch/sparc64/kernel/irq.c
arch/sparc64/kernel/smp.c
arch/x86_64/kernel/irq.c
arch/x86_64/kernel/nmi.c
arch/xtensa/kernel/irq.c
drivers/net/loopback.c
drivers/oprofile/cpu_buffer.c
fs/xfs/linux-2.6/xfs_stats.c
fs/xfs/linux-2.6/xfs_sysctl.c
include/asm-alpha/mmu_context.h
include/asm-alpha/topology.h
include/asm-generic/percpu.h
include/asm-powerpc/percpu.h
include/asm-s390/percpu.h
include/asm-sparc64/percpu.h
include/asm-x86_64/percpu.h
include/linux/genhd.h