]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseTimerLibLocalApic/x86TimerLib.c
update GetPerformanceCounterProperties() declare
[mirror_edk2.git] / MdePkg / Library / BaseTimerLibLocalApic / x86TimerLib.c
index e3af546367e10a4b68e53d621c0d2e71723f04d6..09b614119da174b1d272aa25bfc414935249eb13 100644 (file)
@@ -115,8 +115,6 @@ InternalX86Delay (
 {\r
   INT32                             Ticks;\r
 \r
-  ApicBase = InternalX86GetApicBase ();\r
-\r
   //\r
   // The target timer count is calculated here\r
   //\r
@@ -212,7 +210,7 @@ GetPerformanceCounter (
   VOID\r
   )\r
 {\r
-  return InternalX86GetTimerTick (InternalX86GetApicBase ());\r
+  return (UINT32)InternalX86GetTimerTick (InternalX86GetApicBase ());\r
 }\r
 \r
 /**\r
@@ -241,8 +239,8 @@ GetPerformanceCounter (
 UINT64\r
 EFIAPI\r
 GetPerformanceCounterProperties (\r
-  IN      UINT64                    *StartValue,\r
-  IN      UINT64                    *EndValue\r
+  OUT      UINT64                    *StartValue,  OPTIONAL\r
+  OUT      UINT64                    *EndValue     OPTIONAL\r
   )\r
 {\r
   UINTN                             ApicBase;\r