x86: Sort the MTRR table
authorSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:45:27 +0000 (12:45 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:22 +0000 (11:27 +0800)
commitf31b02c84ee1453e7c0b9c7e2386b9d25f81cdf5
tree873536d4d1daeaaadbc4f4e7cc988c2c8a8a40ad
parentaec7c1c565b0455a0523e8d486294843fd93bca9
x86: Sort the MTRR table

At present the MTRR registers are programmed with the list the U-Boot
builds up in the same order. In some cases this list may be out of order.
It looks better in Linux to have the registers in order, so sort them,

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/mtrr.c