aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/mpparse_64.c
diff options
context:
space:
mode:
authorAlexey Starikovskiy <astarikovskiy@suse.de>2008-03-27 16:55:41 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:32 -0400
commit468e85b9594ed3000a7076f1caf27aa0cf7799fc (patch)
treeddfd914f81c4967a2028b7ae931288e00251d25a /arch/x86/kernel/mpparse_64.c
parent0e01c00c1fadd21356a6cf57d6680497256e1a01 (diff)
x86: don't use MP_processor_info for ACPI mode (64bit)
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/mpparse_64.c')
-rw-r--r--arch/x86/kernel/mpparse_64.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/x86/kernel/mpparse_64.c b/arch/x86/kernel/mpparse_64.c
index 7f8ece4190e6..4da834e1188e 100644
--- a/arch/x86/kernel/mpparse_64.c
+++ b/arch/x86/kernel/mpparse_64.c
@@ -680,27 +680,12 @@ void __init mp_register_lapic_address(u64 address)
680 680
681void __cpuinit mp_register_lapic(u8 id, u8 enabled) 681void __cpuinit mp_register_lapic(u8 id, u8 enabled)
682{ 682{
683 struct mpc_config_processor processor;
684 int boot_cpu = 0;
685
686 if (!enabled) { 683 if (!enabled) {
687 ++disabled_cpus; 684 ++disabled_cpus;
688 return; 685 return;
689 } 686 }
690 if (id == boot_cpu_physical_apicid)
691 boot_cpu = 1;
692
693 processor.mpc_type = MP_PROCESSOR;
694 processor.mpc_apicid = id;
695 processor.mpc_apicver = 0;
696 processor.mpc_cpuflag = (enabled ? CPU_ENABLED : 0);
697 processor.mpc_cpuflag |= (boot_cpu ? CPU_BOOTPROCESSOR : 0);
698 processor.mpc_cpufeature = 0;
699 processor.mpc_featureflag = 0;
700 processor.mpc_reserved[0] = 0;
701 processor.mpc_reserved[1] = 0;
702 687
703 MP_processor_info(&processor); 688 generic_processor_info(id, 0);
704} 689}
705 690
706#define MP_ISA_BUS 0 691#define MP_ISA_BUS 0