summaryrefslogtreecommitdiff
path: root/common/board_f.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-03-28 10:27:30 -0600
committerTom Rini <trini@konsulko.com>2017-04-05 13:55:09 -0400
commit76d1d02fd280ef7ad63a97c3a80bd765bf5596fa (patch)
treeea7633ce30c7a60653b4da7cb8d40308c9f5ba6b /common/board_f.c
parent8749fa6af3e94630eeb02bc3a45fe9bdcb8d3087 (diff)
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 <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'common/board_f.c')
-rw-r--r--common/board_f.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 91cb2a770d..e98f319b3e 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -842,7 +842,8 @@ static const init_fnc_t init_sequence_f[] = {
console_init_f, /* stage 1 init of console */
display_options, /* say that we are here */
display_text_info, /* show debugging info if required */
-#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_SH)
+#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_SH) || \
+ defined(CONFIG_X86)
checkcpu,
#endif
#if defined(CONFIG_DISPLAY_CPUINFO)