MdeModulePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
7c7184e201
commit
1436aea4d5
@@ -17,17 +17,17 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
//
|
||||
// The StartValue in TimerLib
|
||||
//
|
||||
UINT64 mTimerLibStartValue = 0;
|
||||
UINT64 mTimerLibStartValue = 0;
|
||||
|
||||
//
|
||||
// The EndValue in TimerLib
|
||||
//
|
||||
UINT64 mTimerLibEndValue = 0;
|
||||
UINT64 mTimerLibEndValue = 0;
|
||||
|
||||
//
|
||||
// The properties of timestamp
|
||||
//
|
||||
EFI_TIMESTAMP_PROPERTIES mTimestampProperties = {
|
||||
EFI_TIMESTAMP_PROPERTIES mTimestampProperties = {
|
||||
0,
|
||||
0
|
||||
};
|
||||
@@ -56,15 +56,16 @@ TimestampDriverGetTimestamp (
|
||||
// The timestamp of Timestamp Protocol
|
||||
//
|
||||
UINT64 TimestampValue;
|
||||
|
||||
TimestampValue = 0;
|
||||
|
||||
//
|
||||
// Get the timestamp
|
||||
//
|
||||
if (mTimerLibStartValue > mTimerLibEndValue) {
|
||||
TimestampValue = mTimerLibStartValue - GetPerformanceCounter();
|
||||
TimestampValue = mTimerLibStartValue - GetPerformanceCounter ();
|
||||
} else {
|
||||
TimestampValue = GetPerformanceCounter() - mTimerLibStartValue;
|
||||
TimestampValue = GetPerformanceCounter () - mTimerLibStartValue;
|
||||
}
|
||||
|
||||
return TimestampValue;
|
||||
@@ -83,8 +84,8 @@ TimestampDriverGetTimestamp (
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
TimestampDriverGetProperties(
|
||||
OUT EFI_TIMESTAMP_PROPERTIES *Properties
|
||||
TimestampDriverGetProperties (
|
||||
OUT EFI_TIMESTAMP_PROPERTIES *Properties
|
||||
)
|
||||
{
|
||||
if (Properties == NULL) {
|
||||
@@ -94,7 +95,7 @@ TimestampDriverGetProperties(
|
||||
//
|
||||
// Get timestamp properties
|
||||
//
|
||||
CopyMem((VOID *) Properties, (VOID *) &mTimestampProperties, sizeof (mTimestampProperties));
|
||||
CopyMem ((VOID *)Properties, (VOID *)&mTimestampProperties, sizeof (mTimestampProperties));
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
@@ -126,12 +127,13 @@ TimestampDriverInitialize (
|
||||
EFI_STATUS Status;
|
||||
|
||||
EFI_HANDLE TimestampHandle;
|
||||
|
||||
TimestampHandle = NULL;
|
||||
|
||||
//
|
||||
// Get the start value, end value and frequency in Timerlib
|
||||
//
|
||||
mTimestampProperties.Frequency = GetPerformanceCounterProperties(&mTimerLibStartValue, &mTimerLibEndValue);
|
||||
mTimestampProperties.Frequency = GetPerformanceCounterProperties (&mTimerLibStartValue, &mTimerLibEndValue);
|
||||
|
||||
//
|
||||
// Set the EndValue
|
||||
|
Reference in New Issue
Block a user