x86: mtrr: Use MP calls to list the MTRRs
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 14:48:22 +0000 (08:48 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 20 Jul 2020 01:46:46 +0000 (09:46 +0800)
commit240752c612e61222f79c4514210f7be44854f4ca
tree6286a30c29275ffb1f8223f70f39aa031f0bb2dc
parent0538d6833cc61722ee506fab4609d9c1cf010491
x86: mtrr: Use MP calls to list the MTRRs

Update the mtrr command to use mp_run_on_cpus() to obtain its information.
Since the selected CPU is the boot CPU this does not change the result,
but it sets the stage for supporting other CPUs.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/mtrr.c
arch/x86/include/asm/mtrr.h
cmd/x86/mtrr.c