linux_dsm_epyc7002/arch/x86/kernel/acpi
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
..
boot.c x86: convert cpu_to_apicid to be a per cpu variable 2007-10-19 20:35:03 +02:00
cstate.c i386: move kernel/acpi 2007-10-11 11:16:23 +02:00
Makefile x86_64: move kernel/acpi 2007-10-11 11:17:05 +02:00
Makefile_32 x86: Unify i386 and x86-64 early quirks 2007-10-19 20:35:03 +02:00
Makefile_64 x86_64: move kernel/acpi 2007-10-11 11:17:05 +02:00
processor.c i386: move kernel/acpi 2007-10-11 11:16:23 +02:00
sleep_32.c Merge branch 'dmi-const' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6 2007-10-11 19:18:45 -07:00
sleep_64.c x86_64: move kernel/acpi 2007-10-11 11:17:05 +02:00
wakeup_32.S s2ram: kill old debugging junk 2007-10-18 14:37:19 -07:00
wakeup_64.S s2ram: kill old debugging junk 2007-10-18 14:37:19 -07:00