1
0
Fork 0
alistair23-linux/include
Mike Travis 71fff5e6ca x86: convert cpu_to_apicid to be a per cpu variable
This patch converts the x86_cpu_to_apicid array to be a per cpu
variable. This saves sizeof(apicid) * NR unused cpus.  Access is mostly
from startup and CPU HOTPLUG functions.

MP_processor_info() is one of the functions that require access to the
x86_cpu_to_apicid array before the per_cpu data area is setup.  For this
case, a pointer to the __initdata array is initialized in setup_arch()
and removed in smp_prepare_cpus() after the per_cpu data area is
initialized.

A second change is included to change the initial array value of ARCH
i386 from 0xff to BAD_APICID to be consistent with ARCH x86_64.

Signed-off-by: Mike Travis <travis@sgi.com>
Cc: Andi Kleen <ak@suse.de>
Cc: Christoph Lameter <clameter@sgi.com>
Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-10-19 20:35:03 +02:00
..
acpi ACPI: CONFIG_ACPI_SLEEP=n power off regression in 2.6.23-rc8 (NOT in rc7) 2007-09-25 17:58:52 -04:00
asm-alpha alpha: lock bitops 2007-10-18 14:37:29 -07:00
asm-arm bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-arm26 softlockup: make asm/irq_regs.h available on every platform 2007-10-17 08:42:47 -07:00
asm-avr32 bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-blackfin Replace __attribute_pure__ with __pure 2007-10-18 14:37:32 -07:00
asm-cris bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-frv bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-generic bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-h8300 bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-ia64 ia64: lock bitops 2007-10-18 14:37:29 -07:00
asm-m32r bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-m68k bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-m68knommu bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-mips Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus 2007-10-18 14:51:02 -07:00
asm-parisc bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-powerpc powerpc: lock bitops 2007-10-18 14:37:29 -07:00
asm-ppc Replace __attribute_pure__ with __pure 2007-10-18 14:37:32 -07:00
asm-s390 bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-sh bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-sh64 bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-sparc Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 2007-10-18 14:39:44 -07:00
asm-sparc64 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 2007-10-18 14:39:44 -07:00
asm-um x86: rename .i assembler includes to .h 2007-10-17 20:16:29 +02:00
asm-v850 bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
asm-x86 x86: convert cpu_to_apicid to be a per cpu variable 2007-10-19 20:35:03 +02:00
asm-xtensa bitops: introduce lock ops 2007-10-18 14:37:29 -07:00
crypto [CRYPTO] sha: Add header file for SHA definitions 2007-10-10 16:55:50 -07:00
keys KEYS: Make request_key() and co fundamentally asynchronous 2007-10-17 08:42:57 -07:00
linux Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6 2007-10-18 19:31:54 -07:00
math-emu Fix <math-emu/soft-fp.h> tpyo 2007-08-18 17:15:17 -07:00
media v4l: copy_to_user() is not a good method name 2007-10-13 09:58:59 -07:00
mtd
net [IPSEC]: Rename mode to outer_mode and add inner_mode 2007-10-17 21:35:51 -07:00
pcmcia pcmcia: use DMA_MASK_NONE for the default for all pcmcia devices 2007-10-16 09:42:50 -07:00
rdma IB/cm: Modify interface to send MRAs in response to duplicate messages 2007-10-09 19:59:17 -07:00
rxrpc
scsi do not export /usr/include/scsi in make headers_install 2007-10-17 08:42:52 -07:00
sound [ALSA] version 1.0.15 2007-10-16 16:57:46 +02:00
video pm2fb: hardware cursor support for the Permedia2 2007-10-16 09:43:18 -07:00
xen xen: fix incorrect vcpu_register_vcpu_info hypercall argument 2007-10-16 11:51:31 -07:00
Kbuild do not export /usr/include/scsi in make headers_install 2007-10-17 08:42:52 -07:00