]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/Library/MtrrLib/MtrrLib.c
UefiCpuPkg/MtrrLib: Remove the loop of calculating byte offset in MSR
authorJeff Fan <jeff.fan@intel.com>
Wed, 20 Apr 2016 08:58:24 +0000 (16:58 +0800)
committerJeff Fan <jeff.fan@intel.com>
Fri, 29 Apr 2016 02:07:06 +0000 (10:07 +0800)
commitaaa1e579a5109a868863c8a3c7a51580f83b4c38
tree38b760a69d717c59b529a33a22a22914977acc47
parent0f354122328755c7a1cb0f68a37748f166d412ae
UefiCpuPkg/MtrrLib: Remove the loop of calculating byte offset in MSR

Calculate byte offset in MSR directly and removing the loop.

Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
UefiCpuPkg/Library/MtrrLib/MtrrLib.c