common: board_f: Use cpu_get_current_dev in print_cpuinfo
authorYe Li <ye.li@nxp.com>
Sun, 3 May 2020 13:58:50 +0000 (21:58 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 3 May 2020 13:45:49 +0000 (15:45 +0200)
commitf5b66af2cb18b1577b2898413e98df7dcd9bc67f
treea8e7087d1385ee73c5acad975274017d6397070f
parent143f0eeddda915bfbd6c8024a667c37084d4bdc2
common: board_f: Use cpu_get_current_dev in print_cpuinfo

Current print_cpuinfo gets the first udevice in CPU class to return
the cpu info. This has problem if the boot CPU is not fixed.

Changing to use new API cpu_get_current_dev to fix the issue.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
common/board_f.c