x86: Adjust board_final_cleanup() order
authorBin Meng <bmeng.cn@gmail.com>
Fri, 21 Apr 2017 14:24:41 +0000 (07:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 17 May 2017 09:11:46 +0000 (17:11 +0800)
commitbffd798136deb4622059b5aeb33c375fad554ac7
tree3a07f84534296a03714280e45ddf4770ab32ed04
parent95e50dd197cb86641a4ad06a18d5a4c57ea0a6f4
x86: Adjust board_final_cleanup() order

Call board_final_cleanup() before write_tables(), so that anything
done in board_final_cleanup() on a normal boot path is also done
on an S3 resume path.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Stefan Roese <sr@denx.de>
arch/x86/cpu/cpu.c