diff options
author | Star Zeng <star.zeng@intel.com> | 2015-02-02 09:30:34 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2015-02-02 09:30:34 +0000 |
commit | 0fb5e515f2f338c25679e2129ef81c4d230649b9 (patch) | |
tree | 47b965a2b32ace8bb58d4d0d7d565c4081b54149 /MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c | |
parent | db3c5441b1cf39577699567732eba7f97c20c214 (diff) | |
download | edk2-0fb5e515f2f338c25679e2129ef81c4d230649b9.tar.gz edk2-0fb5e515f2f338c25679e2129ef81c4d230649b9.tar.bz2 edk2-0fb5e515f2f338c25679e2129ef81c4d230649b9.zip |
MdeModulePkg Variable: Introduce PcdReclaimVariableSpaceAtEndOfDxe
for trying to reclaim variable space at EndOfDxe.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16687 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c')
-rw-r--r-- | MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c index 815ee2e819..3bf545a4e0 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c @@ -832,6 +832,9 @@ SmmEndOfDxeCallback ( // The initialization for variable quota.
//
InitializeVariableQuota ();
+ if (PcdGetBool (PcdReclaimVariableSpaceAtEndOfDxe)) {
+ ReclaimForOS ();
+ }
return EFI_SUCCESS;
}
|