aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-25 20:55:20 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-08 07:10:50 -0400
commit217b8ce89088dd47e7176686ff34573f75a624e9 (patch)
treeeeee490e9d86b95d08fbf1396afc1e0f64f212b6
parent55f262391a2365d657a00ed68edd1a51bca66af5 (diff)
x86: move boot_params back to setup.c
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/setup.c6
-rw-r--r--arch/x86/kernel/setup_percpu.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 222d7038f2fd..f24a8fe8a7e4 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -118,6 +118,12 @@
118#include <asm/highmem.h> 118#include <asm/highmem.h>
119#endif 119#endif
120 120
121#ifndef CONFIG_DEBUG_BOOT_PARAMS
122struct boot_params __initdata boot_params;
123#else
124struct boot_params boot_params;
125#endif
126
121/* This value is set up by the early boot code to point to the value 127/* This value is set up by the early boot code to point to the value
122 immediately after the boot time page tables. It contains a *physical* 128 immediately after the boot time page tables. It contains a *physical*
123 address, and must not be in the .bss segment! */ 129 address, and must not be in the .bss segment! */
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c
index 5c0c4bb5727d..5497fb9b00a0 100644
--- a/arch/x86/kernel/setup_percpu.c
+++ b/arch/x86/kernel/setup_percpu.c
@@ -15,12 +15,6 @@
15#include <asm/apicdef.h> 15#include <asm/apicdef.h>
16#include <asm/highmem.h> 16#include <asm/highmem.h>
17 17
18#ifndef CONFIG_DEBUG_BOOT_PARAMS
19struct boot_params __initdata boot_params;
20#else
21struct boot_params boot_params;
22#endif
23
24#ifdef CONFIG_X86_LOCAL_APIC 18#ifdef CONFIG_X86_LOCAL_APIC
25unsigned int num_processors; 19unsigned int num_processors;
26unsigned disabled_cpus __cpuinitdata; 20unsigned disabled_cpus __cpuinitdata;