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/smpboot_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/smpboot_64.c')
-rw-r--r-- | arch/x86/kernel/smpboot_64.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/arch/x86/kernel/smpboot_64.c b/arch/x86/kernel/smpboot_64.c index 50e207a8261f..a2076b5f12af 100644 --- a/arch/x86/kernel/smpboot_64.c +++ b/arch/x86/kernel/smpboot_64.c | |||
@@ -852,23 +852,25 @@ static int __init smp_sanity_check(unsigned max_cpus) | |||
852 | } | 852 | } |
853 | 853 | ||
854 | /* | 854 | /* |
855 | * Copy apicid's found by MP_processor_info from initial array to the per cpu | 855 | * Copy data used in early init routines from the initial arrays to the |
856 | * data area. The x86_cpu_to_apicid_init array is then expendable and the | 856 | * per cpu data areas. These arrays then become expendable and the |
857 | * x86_cpu_to_apicid_ptr is zeroed indicating that the static array is no | 857 | * *_ptrs are zeroed indicating that the static arrays are gone. |
858 | * longer available. | ||
859 | */ | 858 | */ |
860 | void __init smp_set_apicids(void) | 859 | void __init smp_set_apicids(void) |
861 | { | 860 | { |
862 | int cpu; | 861 | int cpu; |
863 | 862 | ||
864 | for_each_cpu_mask(cpu, cpu_possible_map) { | 863 | for_each_possible_cpu(cpu) { |
865 | if (per_cpu_offset(cpu)) | 864 | if (per_cpu_offset(cpu)) |
866 | per_cpu(x86_cpu_to_apicid, cpu) = | 865 | per_cpu(x86_cpu_to_apicid, cpu) = |
867 | x86_cpu_to_apicid_init[cpu]; | 866 | x86_cpu_to_apicid_init[cpu]; |
867 | else | ||
868 | printk(KERN_NOTICE "per_cpu_offset zero for cpu %d\n", | ||
869 | cpu); | ||
868 | } | 870 | } |
869 | 871 | ||
870 | /* indicate the static array will be going away soon */ | 872 | /* indicate the early static arrays are gone */ |
871 | x86_cpu_to_apicid_ptr = NULL; | 873 | x86_cpu_to_apicid_early_ptr = NULL; |
872 | } | 874 | } |
873 | 875 | ||
874 | static void __init smp_cpu_index_default(void) | 876 | static void __init smp_cpu_index_default(void) |