فهرست منبع

x86: Split up arch_cpu_init()

At present we do more in this function than we should. Split out the
post-driver-model part into a separate function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Simon Glass 10 سال پیش
والد
کامیت
161d2e4e5b
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      arch/x86/cpu/ivybridge/cpu.c

+ 8 - 0
arch/x86/cpu/ivybridge/cpu.c

@@ -115,6 +115,14 @@ static void set_spi_speed(void)
 }
 
 int arch_cpu_init(void)
+{
+	post_code(POST_CPU_INIT);
+	timer_set_base(rdtsc());
+
+	return x86_cpu_init_f();
+}
+
+int arch_cpu_init_dm(void)
 {
 	const void *blob = gd->fdt_blob;
 	struct pci_controller *hose;