x86: mtrr: Update MTRRs on all CPUs
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 14:48:25 +0000 (08:48 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 20 Jul 2020 01:46:47 +0000 (09:46 +0800)
commitaa3a4d870e53e4517320140902eb9488a73e84ce
tree8d16c7dbe0a8a407c1eb327144ab8b22a4d880c0
parent4f58f73d38bb0b367042018ef62bcf6bc095cf44
x86: mtrr: Update MTRRs on all CPUs

When the boot CPU MTRRs are updated, perform the same update on all other
CPUs so they are kept in sync.

This avoids kernel warnings about mismatched MTRRs.

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