diff options
author | travis@sgi.com <travis@sgi.com> | 2008-01-30 07:33:11 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:11 -0500 |
commit | 3b41908902df1dba141cd7de1a727bb03718a654 (patch) | |
tree | 988d687ff1a2636bcca32cb303d58421e0aa7926 /arch/x86/kernel/mpparse_64.c | |
parent | 30964d54e94229f567a7312a0e6666f9deb6a488 (diff) |
x86: cleanup x86_cpu_to_apicid references
Clean up references to x86_cpu_to_apicid. Removes extraneous
comments and standardizes on "x86_*_early_ptr" for the early
kernel init references.
Signed-off-by: Mike Travis <travis@sgi.com>
Reviewed-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/mpparse_64.c')
-rw-r--r-- | arch/x86/kernel/mpparse_64.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/x86/kernel/mpparse_64.c b/arch/x86/kernel/mpparse_64.c index 17d21e5b22d6..528ad9696d96 100644 --- a/arch/x86/kernel/mpparse_64.c +++ b/arch/x86/kernel/mpparse_64.c | |||
@@ -125,14 +125,9 @@ static void __cpuinit MP_processor_info(struct mpc_config_processor *m) | |||
125 | cpu = 0; | 125 | cpu = 0; |
126 | } | 126 | } |
127 | bios_cpu_apicid[cpu] = m->mpc_apicid; | 127 | bios_cpu_apicid[cpu] = m->mpc_apicid; |
128 | /* | 128 | /* are we being called early in kernel startup? */ |
129 | * We get called early in the the start_kernel initialization | 129 | if (x86_cpu_to_apicid_early_ptr) { |
130 | * process when the per_cpu data area is not yet setup, so we | 130 | u16 *x86_cpu_to_apicid = (u16 *)x86_cpu_to_apicid_early_ptr; |
131 | * use a static array that is removed after the per_cpu data | ||
132 | * area is created. | ||
133 | */ | ||
134 | if (x86_cpu_to_apicid_ptr) { | ||
135 | u16 *x86_cpu_to_apicid = (u16 *)x86_cpu_to_apicid_ptr; | ||
136 | x86_cpu_to_apicid[cpu] = m->mpc_apicid; | 131 | x86_cpu_to_apicid[cpu] = m->mpc_apicid; |
137 | } else { | 132 | } else { |
138 | per_cpu(x86_cpu_to_apicid, cpu) = m->mpc_apicid; | 133 | per_cpu(x86_cpu_to_apicid, cpu) = m->mpc_apicid; |