diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-16 11:50:02 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-07-16 11:50:02 +0000 |
commit | f8ea30263caf89a7ebefa417a642beea3db15ad7 (patch) | |
tree | 9b462e0f9ec63d20a5be0bd43b0ef6b1985c9e28 /MdeModulePkg/Universal | |
parent | d71325128666d393addfaffa0ddf467bedc01eea (diff) | |
download | edk2-f8ea30263caf89a7ebefa417a642beea3db15ad7.zip edk2-f8ea30263caf89a7ebefa417a642beea3db15ad7.tar.gz edk2-f8ea30263caf89a7ebefa417a642beea3db15ad7.tar.bz2 |
Add PCD PcdRealTimeClockUpdateTimeout and update code accordingly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5501 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c | 10 | ||||
-rw-r--r-- | MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf | 4 |
2 files changed, 8 insertions, 6 deletions
diff --git a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c index 057c040..ccd1c4f 100644 --- a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c +++ b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcRtc.c @@ -146,7 +146,7 @@ Returns: //
// Wait for up to 0.1 seconds for the RTC to be updated
//
- Status = RtcWaitToUpdate (100000);
+ Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
if (EFI_ERROR (Status)) {
//BugBug: the EfiAtRuntime should be encapsulated in EfiAcquireLock or
// provide a new instance for EfiAcquireLock, say, RtEfiAcquireLock
@@ -272,7 +272,7 @@ Routine Description: //
// Wait for up to 0.1 seconds for the RTC to be updated
//
- Status = RtcWaitToUpdate (100000);
+ Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
if (EFI_ERROR (Status)) {
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
@@ -391,7 +391,7 @@ Routine Description: //
// Wait for up to 0.1 seconds for the RTC to be updated
//
- Status = RtcWaitToUpdate (100000);
+ Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
if (EFI_ERROR (Status)) {
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
@@ -504,7 +504,7 @@ Returns: //
// Wait for up to 0.1 seconds for the RTC to be updated
//
- Status = RtcWaitToUpdate (100000);
+ Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
if (EFI_ERROR (Status)) {
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
@@ -636,7 +636,7 @@ Returns: //
// Wait for up to 0.1 seconds for the RTC to be updated
//
- Status = RtcWaitToUpdate (100000);
+ Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
if (EFI_ERROR (Status)) {
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
diff --git a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf index f464369..ef5451a 100644 --- a/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf +++ b/MdeModulePkg/Universal/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf @@ -62,4 +62,6 @@ [Depex]
gEfiVariableArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid
-
\ No newline at end of file +
+[Pcd]
+ gEfiMdeModulePkgTokenSpaceGuid.PcdRealTimeClockUpdateTimeout
\ No newline at end of file |