mirror of https://github.com/acidanthera/audk.git
Coding style corrected
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7081 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
7df7393feb
commit
ca08e40b90
|
@ -269,7 +269,7 @@ PcRtcGetTime (
|
||||||
//
|
//
|
||||||
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
|
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
||||||
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
||||||
if (!EfiAtRuntime ()) {
|
if (!EfiAtRuntime ()) {
|
||||||
EfiReleaseLock (&Global->RtcLock);
|
EfiReleaseLock (&Global->RtcLock);
|
||||||
|
@ -388,10 +388,10 @@ PcRtcSetTime (
|
||||||
//
|
//
|
||||||
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
|
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
||||||
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
||||||
if (!EfiAtRuntime ()) {
|
if (!EfiAtRuntime ()) {
|
||||||
EfiReleaseLock (&Global->RtcLock);
|
EfiReleaseLock (&Global->RtcLock);
|
||||||
}
|
}
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
@ -499,7 +499,7 @@ PcRtcGetWakeupTime (
|
||||||
//
|
//
|
||||||
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
|
Status = RtcWaitToUpdate (PcdGet32 (PcdRealTimeClockUpdateTimeout));
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
//BugBug: the EfiAtRuntime should be encapsulated in EfiReleaseLock or
|
||||||
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
// provide a new instance for EfiReleaseLock, say, RtEfiReleaseLock
|
||||||
if (!EfiAtRuntime ()) {
|
if (!EfiAtRuntime ()) {
|
||||||
EfiReleaseLock (&Global->RtcLock);
|
EfiReleaseLock (&Global->RtcLock);
|
||||||
|
|
Loading…
Reference in New Issue