aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/mpparse_64.c
diff options
context:
space:
mode:
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