1
linux/arch/parisc/kernel
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
..
asm-offsets.c [PATCH] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason 2005-11-09 07:55:57 -08:00
binfmt_elf32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cache.c [PARISC] Make local cache flushes take a void * 2006-01-10 21:49:21 -05:00
drivers.c [PARISC] Use kzalloc and other janitor-style cleanups 2006-01-22 20:26:31 -05:00
entry.S [PARISC] Document some register usages in assembly files 2005-11-17 16:32:46 -05:00
firmware.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
hardware.c [PARISC] Fix Dino reporting on J2240 2006-01-10 21:53:14 -05:00
head.S [PARISC] Replace uses of __LP64__ with CONFIG_64BIT 2005-10-21 22:46:48 -04:00
hpmc.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
inventory.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
irq.c [PARISC] Make redirecting irq messages less noisy 2005-11-17 16:29:50 -05:00
Makefile [PATCH] sanitize building of fs/compat_ioctl.c 2006-01-10 08:01:33 -08:00
module.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pa7300lc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pacache.S [PARISC] Explicitly specify sr4 when flushing kernel space 2005-10-21 22:56:14 -04:00
parisc_ksyms.c [PARISC] Move pm_power_off export to process.c 2006-01-22 20:26:46 -05:00
pci-dma.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
pci.c [PARISC] Clean up compiler warning in pci.c 2006-01-22 20:26:43 -05:00
pdc_chassis.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
pdc_cons.c [PARISC] Update pdc console from parisc tree 2005-10-21 22:50:06 -04:00
perf_asm.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
perf_images.h [PARISC] Use kzalloc and other janitor-style cleanups 2006-01-22 20:26:31 -05:00
perf.c [PARISC] Remove {,un}lock_kernel from perf ioctl 2006-01-22 20:26:52 -05:00
process.c [PARISC] Add chassis_power_off routine 2006-01-22 20:26:50 -05:00
processor.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
ptrace.c [PARISC] Arch-specific compat signals 2006-01-22 20:57:42 -05:00
real2.S [PARISC] Properly specify section alignment for real2.S 2005-10-21 22:56:53 -04:00
semaphore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
signal32.c [PARISC] Arch-specific compat signals 2006-01-22 20:57:42 -05:00
signal32.h [PARISC] Arch-specific compat signals 2006-01-22 20:57:42 -05:00
signal.c [PARISC] Arch-specific compat signals 2006-01-22 20:57:42 -05:00
smp.c [PATCH] more for_each_cpu() conversions 2006-03-23 07:38:17 -08:00
sys32.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sys_parisc32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sys_parisc.c [PATCH] consolidate sys_shmat 2005-05-01 08:59:12 -07:00
syscall_table.S [PATCH] sys_newfstatat -> sys_fstatat64 2006-02-13 19:58:47 -08:00
syscall.S [PARISC] Add CONFIG_DEBUG_RODATA to protect read-only data 2006-01-22 20:26:54 -05:00
time.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
topology.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
traps.c [PARISC] Use kzalloc and other janitor-style cleanups 2006-01-22 20:26:31 -05:00
unaligned.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
unwind.c [PARISC] Add __read_mostly section for parisc 2006-01-10 20:35:03 -05:00
vmlinux.lds.S [PARISC] Use STABS_DEBUG macro from vmlinux.lds.h 2006-01-10 21:53:19 -05:00