]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitdd54ff4894a5f8d58e13c37a31e6c193eb76d757
treeea7633ce30c7a60653b4da7cb8d40308c9f5ba6b
parentd1db95142f1969b0ec0063662496def804cc10af
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