]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/MtrrLib: Remove unnecessary API MtrrSetFixedMtrr()
authorRay Ni <ray.ni@intel.com>
Mon, 13 Jul 2020 07:55:32 +0000 (15:55 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 14 Jul 2020 03:24:24 +0000 (03:24 +0000)
commit9c6f3545aee0808b78a0ad4480b6eb9d24989dc1
tree80d9dcb83130bf9afb561476c722fffb8ae5160f
parent3c9291288540f48a6812857fd59cf635aa294aa1
UefiCpuPkg/MtrrLib: Remove unnecessary API MtrrSetFixedMtrr()

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2849

MtrrSetFixedMtrr() sets all the fixed MTRR settings.
But in fact MtrrSetAllMtrrs() is always used by callers to set all
MTRR settings including the fixed and variable ones.

The patch removes the unnecessary API MtrrSetFixedMtrr()
to simplify the MtrrLib API.

There is no code in edk2 and edk2-platforms repo that calls
MtrrSetFixedMtrr().

Signed-off-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
UefiCpuPkg/Include/Library/MtrrLib.h
UefiCpuPkg/Library/MtrrLib/MtrrLib.c