]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/MtrrLib: Use a better algorithm to calculate MTRR
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 2 Sep 2016 04:09:54 +0000 (12:09 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 31 Mar 2017 05:57:33 +0000 (13:57 +0800)
commit8051302a36b31f7619dc7753280ba449f163b62f
tree3c619502c06f6e997f8ea7af96b6ff49fcc11a8a
parent012f4054dbf0debbe913422d0fd3545b36cb5dc9
UefiCpuPkg/MtrrLib: Use a better algorithm to calculate MTRR

The new algorithm finds out the more optimal MTRR solution for
current memory type settings.
Compare against the original algorithm, the new one guarantees
to find the correct MTRR solution, but doesn't guarantee to
find the most optimal MTRR solution.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
UefiCpuPkg/Library/MtrrLib/MtrrLib.c