x86: Call board_final_cleanup() in last_stage_init()
authorBin Meng <bmeng.cn@gmail.com>
Wed, 11 May 2016 14:44:56 +0000 (07:44 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 23 May 2016 07:18:00 +0000 (15:18 +0800)
commit1e2f7b9e8e077cb6937204c305d554ef7a970be5
tree344720ff67fb622fb644542e0232c3da3f55311b
parent91fc5bf652c1e959373cd21df4809a74d31e75fe
x86: Call board_final_cleanup() in last_stage_init()

At present board_final_cleanup() is called before booting a Linux
kernel. This actually needs to be done before booting anything,
like SeaBIOS, VxWorks or Windows.

Move the call to last_stage_init() instead.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/coreboot/coreboot.c
arch/x86/cpu/cpu.c
arch/x86/lib/bootm.c