UefiCpuPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the UefiCpuPkg 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: Ray Ni <ray.ni@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
91415a36ae
commit
053e878bfb
@@ -27,10 +27,10 @@ InternalX86GetTimerFrequency (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
UINTN Divisor;
|
||||
UINTN Divisor;
|
||||
|
||||
GetApicTimerState (&Divisor, NULL, NULL);
|
||||
return PcdGet32(PcdFSBClock) / (UINT32)Divisor;
|
||||
return PcdGet32 (PcdFSBClock) / (UINT32)Divisor;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -48,13 +48,13 @@ InternalX86GetTimerFrequency (
|
||||
VOID
|
||||
EFIAPI
|
||||
InternalX86Delay (
|
||||
IN UINT32 Delay
|
||||
IN UINT32 Delay
|
||||
)
|
||||
{
|
||||
INT32 Ticks;
|
||||
UINT32 Times;
|
||||
UINT32 InitCount;
|
||||
UINT32 StartTick;
|
||||
INT32 Ticks;
|
||||
UINT32 Times;
|
||||
UINT32 InitCount;
|
||||
UINT32 StartTick;
|
||||
|
||||
//
|
||||
// In case Delay is too larger, separate it into several small delay slot.
|
||||
@@ -65,13 +65,13 @@ InternalX86Delay (
|
||||
//
|
||||
InitCount = GetApicTimerInitCount ();
|
||||
ASSERT (InitCount != 0);
|
||||
Times = Delay / (InitCount / 2);
|
||||
Delay = Delay % (InitCount / 2);
|
||||
Times = Delay / (InitCount / 2);
|
||||
Delay = Delay % (InitCount / 2);
|
||||
|
||||
//
|
||||
// Get Start Tick and do delay
|
||||
//
|
||||
StartTick = GetApicTimerCurrentCount ();
|
||||
StartTick = GetApicTimerCurrentCount ();
|
||||
do {
|
||||
//
|
||||
// Wait until time out by Delay value
|
||||
@@ -111,7 +111,7 @@ InternalX86Delay (
|
||||
UINTN
|
||||
EFIAPI
|
||||
MicroSecondDelay (
|
||||
IN UINTN MicroSeconds
|
||||
IN UINTN MicroSeconds
|
||||
)
|
||||
{
|
||||
InternalX86Delay (
|
||||
@@ -139,7 +139,7 @@ MicroSecondDelay (
|
||||
UINTN
|
||||
EFIAPI
|
||||
NanoSecondDelay (
|
||||
IN UINTN NanoSeconds
|
||||
IN UINTN NanoSeconds
|
||||
)
|
||||
{
|
||||
InternalX86Delay (
|
||||
@@ -200,8 +200,8 @@ GetPerformanceCounter (
|
||||
UINT64
|
||||
EFIAPI
|
||||
GetPerformanceCounterProperties (
|
||||
OUT UINT64 *StartValue OPTIONAL,
|
||||
OUT UINT64 *EndValue OPTIONAL
|
||||
OUT UINT64 *StartValue OPTIONAL,
|
||||
OUT UINT64 *EndValue OPTIONAL
|
||||
)
|
||||
{
|
||||
if (StartValue != NULL) {
|
||||
@@ -212,7 +212,7 @@ GetPerformanceCounterProperties (
|
||||
*EndValue = 0;
|
||||
}
|
||||
|
||||
return (UINT64) InternalX86GetTimerFrequency ();
|
||||
return (UINT64)InternalX86GetTimerFrequency ();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -229,7 +229,7 @@ GetPerformanceCounterProperties (
|
||||
UINT64
|
||||
EFIAPI
|
||||
GetTimeInNanoSecond (
|
||||
IN UINT64 Ticks
|
||||
IN UINT64 Ticks
|
||||
)
|
||||
{
|
||||
UINT64 Frequency;
|
||||
@@ -251,9 +251,9 @@ GetTimeInNanoSecond (
|
||||
// Since 2^29 < 1,000,000,000 = 0x3B9ACA00 < 2^30, Remainder should < 2^(64-30) = 2^34,
|
||||
// i.e. highest bit set in Remainder should <= 33.
|
||||
//
|
||||
Shift = MAX (0, HighBitSet64 (Remainder) - 33);
|
||||
Remainder = RShiftU64 (Remainder, (UINTN) Shift);
|
||||
Frequency = RShiftU64 (Frequency, (UINTN) Shift);
|
||||
Shift = MAX (0, HighBitSet64 (Remainder) - 33);
|
||||
Remainder = RShiftU64 (Remainder, (UINTN)Shift);
|
||||
Frequency = RShiftU64 (Frequency, (UINTN)Shift);
|
||||
NanoSeconds += DivU64x64Remainder (MultU64x32 (Remainder, 1000000000u), Frequency, NULL);
|
||||
|
||||
return NanoSeconds;
|
||||
|
Reference in New Issue
Block a user