x86: remove static boot_cpu_pda array v2
authorMike Travis <travis@sgi.com>
Mon, 12 May 2008 19:21:13 +0000 (21:21 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 09:31:25 +0000 (11:31 +0200)
commit3461b0af025251bbc6b3d56c821c6ac2de6f7209
tree5350ad712311a69b4b59deec1ec60d8573db8817
parent9f248bde9d47cc177011198c9a15fb339b9f3215
x86: remove static boot_cpu_pda array v2

  * Remove the boot_cpu_pda array and pointer table from the data section.
    Allocate the pointer table and array during init.  do_boot_cpu()
    will reallocate the pda in node local memory and if the cpu is being
    brought up before the bootmem array is released (after_bootmem = 0),
    then it will free the initial pda.  This will happen for all cpus
    present at system startup.

    This removes 512k + 32k bytes from the data section.

For inclusion into sched-devel/latest tree.

Based on:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
    +   sched-devel/latest  .../mingo/linux-2.6-sched-devel.git

Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/head64.c
arch/x86/kernel/setup.c
arch/x86/kernel/setup64.c
arch/x86/kernel/smpboot.c
include/asm-x86/pda.h
include/linux/mm.h