summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Ecc/CodeFragment.py
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2018-07-04 16:29:07 +0800
committerEric Dong <eric.dong@intel.com>2018-07-20 09:24:42 +0800
commite52838d358d5062c4b1ed8e87bdc3d0f527095d3 (patch)
tree57b4830444424506c374d7da37f605a9fb399284 /BaseTools/Source/Python/Ecc/CodeFragment.py
parenta3fffb4f5e1535e8e542669925eed489fdce6b62 (diff)
downloadedk2-e52838d358d5062c4b1ed8e87bdc3d0f527095d3.tar.gz
edk2-e52838d358d5062c4b1ed8e87bdc3d0f527095d3.tar.bz2
edk2-e52838d358d5062c4b1ed8e87bdc3d0f527095d3.zip
UefiCpuPkg/MpInitLib: Optimize get processor number performance.
Current function has low performance because it calls GetApicId in the loop, so it maybe called more than once. New logic call GetApicId once and base on this value to search the processor. Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Jeff Fan <vanjeff_919@hotmail.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc/CodeFragment.py')
0 files changed, 0 insertions, 0 deletions