diff options
author | Alexey Starikovskiy <astarikovskiy@suse.de> | 2008-03-27 16:54:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:31 -0400 |
commit | 08bef9d337f26747b9520278872d20f15983fcda (patch) | |
tree | 71e13b9bf3f52095e40449226dc9e0b2f363f230 /arch/x86/kernel/mpparse_32.c | |
parent | c853c67690448415af2d204062028d1456f524de (diff) |
x86: don't use MP_processor_info for ACPI mode
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/mpparse_32.c')
-rw-r--r-- | arch/x86/kernel/mpparse_32.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/arch/x86/kernel/mpparse_32.c b/arch/x86/kernel/mpparse_32.c index b0aed978eef1..9f23018190c5 100644 --- a/arch/x86/kernel/mpparse_32.c +++ b/arch/x86/kernel/mpparse_32.c | |||
@@ -114,7 +114,6 @@ static void __cpuinit generic_processor_info(int apicid, int version) | |||
114 | int cpu; | 114 | int cpu; |
115 | cpumask_t tmp_map; | 115 | cpumask_t tmp_map; |
116 | physid_mask_t phys_cpu; | 116 | physid_mask_t phys_cpu; |
117 | |||
118 | 117 | ||
119 | /* | 118 | /* |
120 | * Validate version | 119 | * Validate version |
@@ -893,34 +892,18 @@ void __init mp_register_lapic_address(u64 address) | |||
893 | 892 | ||
894 | void __cpuinit mp_register_lapic (u8 id, u8 enabled) | 893 | void __cpuinit mp_register_lapic (u8 id, u8 enabled) |
895 | { | 894 | { |
896 | struct mpc_config_processor processor; | ||
897 | int boot_cpu = 0; | ||
898 | |||
899 | if (MAX_APICS - id <= 0) { | 895 | if (MAX_APICS - id <= 0) { |
900 | printk(KERN_WARNING "Processor #%d invalid (max %d)\n", | 896 | printk(KERN_WARNING "Processor #%d invalid (max %d)\n", |
901 | id, MAX_APICS); | 897 | id, MAX_APICS); |
902 | return; | 898 | return; |
903 | } | 899 | } |
900 | |||
904 | if (!enabled) { | 901 | if (!enabled) { |
905 | ++disabled_cpus; | 902 | ++disabled_cpus; |
906 | return; | 903 | return; |
907 | } | 904 | } |
908 | 905 | ||
909 | if (id == boot_cpu_physical_apicid) | 906 | generic_processor_info(id, GET_APIC_VERSION(apic_read(APIC_LVR))); |
910 | boot_cpu = 1; | ||
911 | |||
912 | processor.mpc_type = MP_PROCESSOR; | ||
913 | processor.mpc_apicid = id; | ||
914 | processor.mpc_apicver = GET_APIC_VERSION(apic_read(APIC_LVR)); | ||
915 | processor.mpc_cpuflag = (enabled ? CPU_ENABLED : 0); | ||
916 | processor.mpc_cpuflag |= (boot_cpu ? CPU_BOOTPROCESSOR : 0); | ||
917 | processor.mpc_cpufeature = (boot_cpu_data.x86 << 8) | | ||
918 | (boot_cpu_data.x86_model << 4) | boot_cpu_data.x86_mask; | ||
919 | processor.mpc_featureflag = boot_cpu_data.x86_capability[0]; | ||
920 | processor.mpc_reserved[0] = 0; | ||
921 | processor.mpc_reserved[1] = 0; | ||
922 | |||
923 | MP_processor_info(&processor); | ||
924 | } | 907 | } |
925 | 908 | ||
926 | #ifdef CONFIG_X86_IO_APIC | 909 | #ifdef CONFIG_X86_IO_APIC |