1
linux/drivers/acpi
Christoph Lameter fbb43ab03c ACPI: avoid references to impossible processors.
ACPI uses NR_CPUS in various loops and in some it accesses per cpu data of
processors that are not present(!) and that will never be present.

The pointers to per cpu data are typically not initialized for processors
that are not present.  So we seem to be reading something here from offset
0 in memory.

Make ACPI use nr_cpu_ids instead. That stops at the end of the possible
processors.

Convert one loop to NR_CPUS to use the cpu_possible map instead.  That way
ranges of processor that can never be brought online are skipped during the
loop.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Len Brown <lenb@kernel.org>
Acked-by: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-11-29 09:24:55 -08:00
..
dispatcher
events ACPICA: hw: remove use_lock flag from acpi_hw_register_{read, write} 2007-10-10 01:00:26 -04:00
executer
hardware Pull acpica into test branch 2007-10-10 01:00:45 -04:00
namespace
parser
resources
sleep Pull alexey-fixes into release branch 2007-10-29 17:30:21 -04:00
tables ACPI: Add missing spaces to printk format 2007-11-19 21:53:32 -05:00
utilities
ac.c ACPI: Split out control for /proc/acpi entries from battery, ac, and sbs. 2007-11-19 11:21:50 -05:00
acpi_memhotplug.c
asus_acpi.c
battery.c Pull procfs-default into release branch 2007-11-20 01:20:00 -05:00
bay.c
blacklist.c
bus.c ACPI: Fan: Drop force_power_state acpi_device option 2007-10-25 16:31:31 -04:00
button.c ACPI: button: send initial lid state after add and resume 2007-10-25 16:31:30 -04:00
cm_sbs.c
container.c
debug.c
dock.c
ec.c Pull bugzilla-9327 into release branch 2007-11-20 20:07:49 -05:00
event.c
fan.c ACPI: Fan: Drop force_power_state acpi_device option 2007-10-25 16:31:31 -04:00
glue.c
Kconfig Revert "acpi: make ACPI_PROCFS default to y" 2007-11-19 11:22:44 -05:00
Makefile ACPI: Split out control for /proc/acpi entries from battery, ac, and sbs. 2007-11-19 11:21:50 -05:00
numa.c
osl.c ACPI: Handle I/O access width requestst that are not a multiple of 8 bits. 2007-11-16 21:37:14 -05:00
pci_bind.c
pci_irq.c
pci_link.c
pci_root.c
power.c ACPI: power: don't cache power resource state 2007-10-25 16:31:31 -04:00
processor_core.c ACPI: avoid references to impossible processors. 2007-11-29 09:24:55 -08:00
processor_idle.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86 2007-11-26 19:41:28 -08:00
processor_perflib.c
processor_thermal.c
processor_throttling.c ACPI: Enable MSR (FixedHW) support for T-States 2007-11-16 21:46:25 -05:00
sbs.c Pull procfs-default into release branch 2007-11-20 01:20:00 -05:00
sbshc.c ACPI: SBS: Split host controller (ACPI0001) from SBS driver (ACPI0002) 2007-09-27 15:50:22 -04:00
sbshc.h ACPI: SBS: Split host controller (ACPI0001) from SBS driver (ACPI0002) 2007-09-27 15:50:22 -04:00
scan.c Driver core: change add_uevent_var to use a struct 2007-10-12 14:51:01 -07:00
system.c
tables.c
thermal.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2007-10-19 13:12:46 -07:00
toshiba_acpi.c Fix Oops in toshiba_acpi error return path 2007-11-14 18:45:36 -08:00
utils.c
video.c ACPI: Video: Increase buffer size for writes to brightness proc file. 2007-11-19 01:55:13 -05:00