MLK-21828-2 common: board_f: Use cpu_get_current_dev in print_cpuinfo
authorYe Li <ye.li@nxp.com>
Fri, 8 Mar 2019 07:57:21 +0000 (23:57 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 08:50:48 +0000 (01:50 -0700)
commit30b9f6f88e4e310a03458eecee5f594ebd218564
treea3fe52eb400010d84e7f92d9dddf053eceedffdd
parent53cc0b214c0ebb057b72b93071980d3ceab9e655
MLK-21828-2 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.

Change to use new API cpu_get_current_dev to resolve the issue.

Signed-off-by: Ye Li <ye.li@nxp.com>
common/board_f.c