]> git.baikalelectronics.ru Git - uboot.git/commit
x86: Return mtrr_add_request() to its old purpose
authorSimon Glass <sjg@chromium.org>
Mon, 31 Jul 2023 06:01:08 +0000 (14:01 +0800)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 1 Aug 2023 02:06:46 +0000 (10:06 +0800)
commita1f19f4c46f85bbddcddb6e153196f92f30aa9a0
tree40b7c63100576964d588780ea35f4dfa86a2c781
parentca0ab21297fe157279b5d8552f417cf021e65f26
x86: Return mtrr_add_request() to its old purpose

This function used to be for adding a list of requests to be actioned on
relocation. Revert it back to this purpose, to avoid problems with boards
which need control of their MTRRs (i.e. those which don't use FSP).

The mtrr_set_next_var() function is available when the next free
variable-MTRR must be set, so this can be used instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Fixes: e5e86530020 ("x86: mtrr: Skip MSRs that were already programmed..")
Fixes: 5394ace223c ("x86: mtrr: Do not clear the unused ones..")
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/mtrr.c