]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c
UefiCpuPkg S3Resume2: Move the call to RestoreS3PageTables() earlier before SMM S3...
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 2 May 2012 02:23:18 +0000 (02:23 +0000)
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 2 May 2012 02:23:18 +0000 (02:23 +0000)
commit3a69f7cbe7289fae061ce3d0facda254bf3c82e5
tree12f371a87ed1d7b7190fdbc637e014ca27b9d6b0
parent1d602b12ab937dde5f06f16a892bc54a0bf7ef30
UefiCpuPkg S3Resume2: Move the call to RestoreS3PageTables() earlier before SMM S3 resume.

SMM S3 resume may change memory cache type for flash memory range and thus RestoreS3PageTables() in which loops are executed to create page table would have negative performance impact on S3 resume. Move the call to RestoreS3PageTables() earlier before SMM S3 resume can avoid this issue.

Signed-off-by: Sun Rui <rui.sun@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13231 6f19259b-4bc3-4df7-8a09-765794883524
UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c