From 76d1d02fd280ef7ad63a97c3a80bd765bf5596fa Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 28 Mar 2017 10:27:30 -0600 Subject: board_f: x86: Use checkcpu() for CPU init At present we misuse print_cpuinfo() do so CPU init on x86. This is done because it is the next available call after the console is enabled. But several arches use checkcpu() instead. Despite the horrible name (which we can fix), it seems a better choice. Adjust the various x86 CPU implementations to move their init code into checkcpu() and use print_cpuinfo() only for printing CPU info. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese --- arch/x86/lib/efi/efi.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch/x86/lib/efi/efi.c') diff --git a/arch/x86/lib/efi/efi.c b/arch/x86/lib/efi/efi.c index ede5d5676b..533318bc36 100644 --- a/arch/x86/lib/efi/efi.c +++ b/arch/x86/lib/efi/efi.c @@ -125,6 +125,11 @@ void dram_init_banksize(void) } } +int checkcpu(void) +{ + return 0; +} + int print_cpuinfo(void) { return default_print_cpuinfo(); -- cgit