]> git.ipfire.org Git - people/ms/u-boot.git/commit - arch/x86/cpu/efi/efi.c
board_f: x86: Use checkcpu() for CPU init
authorSimon Glass <sjg@chromium.org>
Tue, 28 Mar 2017 16:27:30 +0000 (10:27 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 5 Apr 2017 17:55:09 +0000 (13:55 -0400)
commit76d1d02fd280ef7ad63a97c3a80bd765bf5596fa
treeea7633ce30c7a60653b4da7cb8d40308c9f5ba6b
parent8749fa6af3e94630eeb02bc3a45fe9bdcb8d3087
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>
arch/x86/cpu/broadwell/cpu.c
arch/x86/cpu/coreboot/coreboot.c
arch/x86/cpu/efi/efi.c
arch/x86/cpu/ivybridge/cpu.c
arch/x86/cpu/qemu/qemu.c
arch/x86/cpu/quark/quark.c
arch/x86/cpu/x86_64/cpu.c
arch/x86/lib/efi/efi.c
arch/x86/lib/fsp/fsp_common.c
common/board_f.c