From: Simon Glass Date: Thu, 5 Mar 2015 19:25:17 +0000 (-0700) Subject: x86: Split up arch_cpu_init() X-Git-Tag: v2015.07-rc1~333 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=161d2e4e5b98310c4910a353e432dbabcb1bd630;p=u-boot 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 Reviewed-by: Bin Meng --- diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cpu/ivybridge/cpu.c index 5fd3753c47..e6ef4815a0 100644 --- a/arch/x86/cpu/ivybridge/cpu.c +++ b/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;