x86: Refactor mtrr_commit() to allow for shared code
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:56:45 +0000 (08:56 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:48 +0000 (13:57 +0800)
commit6ccb2f890bb5bfdd6aed4a99294fd77508436c40
tree4463ea41786f5b599be87c2868c1ed3f79244939
parent12e927b0a842408467fe7dbe627ca350d2300348
x86: Refactor mtrr_commit() to allow for shared code

Move the code that actually sets up the MTRR into another function so it
can be used elsewhere in the file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/mtrr.c