diff options
author | Ray Ni <ray.ni@intel.com> | 2020-07-13 15:47:41 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-07-14 03:24:24 +0000 |
commit | 3c9291288540f48a6812857fd59cf635aa294aa1 (patch) | |
tree | 3529997484ed333d9567d54965d2570157221392 /UefiCpuPkg/Include | |
parent | abc16e2531dc62d40fef40e62ac65a55604ddb54 (diff) | |
download | edk2-3c9291288540f48a6812857fd59cf635aa294aa1.zip edk2-3c9291288540f48a6812857fd59cf635aa294aa1.tar.gz edk2-3c9291288540f48a6812857fd59cf635aa294aa1.tar.bz2 |
UefiCpuPkg/MtrrLib: Remove unnecessary API MtrrSetVariableMtrr()
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2849
MtrrSetVariableMtrr() sets all the variable 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 MtrrSetVariableMtrr() to
simplify the MtrrLib API.
There is no code in edk2 and edk2-platforms repo that calls
MtrrSetVariableMtrr().
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>
Diffstat (limited to 'UefiCpuPkg/Include')
-rw-r--r-- | UefiCpuPkg/Include/Library/MtrrLib.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/UefiCpuPkg/Include/Library/MtrrLib.h b/UefiCpuPkg/Include/Library/MtrrLib.h index cfe3c0a..0bc69e2 100644 --- a/UefiCpuPkg/Include/Library/MtrrLib.h +++ b/UefiCpuPkg/Include/Library/MtrrLib.h @@ -186,21 +186,6 @@ MtrrGetMemoryAttribute ( /**
- This function sets variable MTRRs
-
- @param[in] VariableSettings A buffer to hold variable MTRRs content.
-
- @return The pointer of VariableSettings
-
-**/
-MTRR_VARIABLE_SETTINGS*
-EFIAPI
-MtrrSetVariableMtrr (
- IN MTRR_VARIABLE_SETTINGS *VariableSettings
- );
-
-
-/**
This function gets the content in fixed MTRRs
@param[out] FixedSettings A buffer to hold fixed MTRRs content.
|