瀏覽代碼

x86: don't call MP_processor_info for disabled cpu

Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Alexey Starikovskiy 17 年之前
父節點
當前提交
987dd2d4d4
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/x86/kernel/mpparse_32.c

+ 4 - 0
arch/x86/kernel/mpparse_32.c

@@ -895,6 +895,10 @@ void __cpuinit mp_register_lapic (u8 id, u8 enabled)
 			id, MAX_APICS);
 		return;
 	}
+	if (!enabled) {
+		++disabled_cpus;
+		return;
+	}
 
 	if (id == boot_cpu_physical_apicid)
 		boot_cpu = 1;