x86: don't call MP_processor_info for disabled cpu (64bit)
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Thu, 27 Mar 2008 20:55:28 +0000 (23:55 +0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:32 +0000 (17:41 +0200)
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/mpparse_64.c

index 83a36eed081bba1d2210ad9c5115acac74ca283f..3681b9d8f557e53b871e904ac56b5fa3320d9faa 100644 (file)
@@ -678,6 +678,10 @@ void __cpuinit mp_register_lapic(u8 id, u8 enabled)
        struct mpc_config_processor processor;
        int boot_cpu = 0;
 
+       if (!enabled) {
+               ++disabled_cpus;
+               return;
+       }
        if (id == boot_cpu_physical_apicid)
                boot_cpu = 1;