diff options
author | Bret Barkelew <Bret.Barkelew@microsoft.com> | 2019-06-04 10:24:02 +0800 |
---|---|---|
committer | Hao A Wu <hao.a.wu@intel.com> | 2019-06-24 09:18:31 +0800 |
commit | 27052c21c411394032b3ab1749cf410ea9934157 (patch) | |
tree | 5bd870a291a9b74f73818d173dfab64a69e06c50 /BaseTools/Source/Python/AutoGen/InfSectionParser.py | |
parent | ba3aa1c4e727feef36cdaa28ea1c49f7a9f3d081 (diff) | |
download | edk2-27052c21c411394032b3ab1749cf410ea9934157.tar.gz edk2-27052c21c411394032b3ab1749cf410ea9934157.tar.bz2 edk2-27052c21c411394032b3ab1749cf410ea9934157.zip |
MdeModulePkg/CapsulePei: Optimize the CapsulePei
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1853
Code change form Mu project:
https://github.com/microsoft/mu_basecore/blob/release/201903/
MdeModulePkg/Universal/CapsulePei/UefiCapsule.c#L801
Separate the capsule check function from GetCapsuleDescriptors
to AreCapsulesStaged. The original one is unclear.
Avoid querying the capsule variable twice. Use a fixed array
to cache the SG list during count the number of SG list. Then
allocate memory buffer to save the SG list from array.
Using MemoryAllocationLib instead of memory function in Pei
services.
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Michael Turner <Michael.Turner@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Zhichao gao <zhichao.gao@intel.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/InfSectionParser.py')
0 files changed, 0 insertions, 0 deletions