]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/ArmArchTimerLib: correct typos
authorEvan Lloyd <evan.lloyd@arm.com>
Thu, 3 Mar 2016 11:55:21 +0000 (11:55 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 1 Apr 2016 15:19:24 +0000 (17:19 +0200)
Some minor typographical problems were noticed during previous commits.
This change corrects those, and contains no functional modifications.
The changes are in comments, and one diagnostic message.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Evan Lloyd <evan.lloyd@arm.com>
Reviewed-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c

index e6751b29d900cdd90f00a4807fd3ace1de5c06d1..b81293c5cfde0234a56abed42ece062d9dd6fab7 100644 (file)
@@ -50,7 +50,7 @@ TimerConstructor (
     if (PcdGet32 (PcdArmArchTimerFreqInHz) != 0) {\r
       //\r
       // Check if ticks/uS is not 0. The Architectural timer runs at constant\r
-      // frequency, irrespective of CPU frequency. According to General Timer\r
+      // frequency, irrespective of CPU frequency. According to Generic Timer\r
       // Ref manual, lower bound of the frequency is in the range of 1-10MHz.\r
       //\r
       ASSERT (TICKS_PER_MICRO_SEC);\r
@@ -69,14 +69,14 @@ TimerConstructor (
     }\r
 \r
     //\r
-    // Architectural Timer Frequency must be set in the Secure privileged\r
+    // Architectural Timer Frequency must be set in Secure privileged\r
     // mode (if secure extension is supported).\r
     // If the reset value (0) is returned, just ASSERT.\r
     //\r
     ASSERT (ArmGenericTimerGetTimerFreq () != 0);\r
 \r
   } else {\r
-    DEBUG ((EFI_D_ERROR, "ARM Architectural Timer is not available in the CPU, hence this library can not be used.\n"));\r
+    DEBUG ((EFI_D_ERROR, "ARM Architectural Timer is not available in the CPU, hence this library cannot be used.\n"));\r
     ASSERT (0);\r
   }\r
 \r
@@ -111,7 +111,7 @@ GetPlatformTimerFreq (
 \r
   @param  MicroSeconds  The minimum number of microseconds to delay.\r
 \r
-  @return The value of MicroSeconds inputted.\r
+  @return The value of MicroSeconds input.\r
 \r
 **/\r
 UINTN\r
@@ -123,7 +123,7 @@ MicroSecondDelay (
   UINT64 TimerTicks64;\r
   UINT64 SystemCounterVal;\r
 \r
-  // Calculate counter ticks that can represent requested delay:\r
+  // Calculate counter ticks that represent requested delay:\r
   //  = MicroSeconds x TICKS_PER_MICRO_SEC\r
   //  = MicroSeconds x Frequency.10^-6\r
   TimerTicks64 = DivU64x32 (\r
@@ -139,7 +139,7 @@ MicroSecondDelay (
 \r
   TimerTicks64 += SystemCounterVal;\r
 \r
-  // Wait until delay count is expired.\r
+  // Wait until delay count expires.\r
   while (SystemCounterVal < TimerTicks64) {\r
     SystemCounterVal = ArmGenericTimerGetSystemCount ();\r
   }\r
@@ -230,12 +230,12 @@ GetPerformanceCounterProperties (
   )\r
 {\r
   if (StartValue != NULL) {\r
-    // Timer starts with the reload value\r
+    // Timer starts at 0\r
     *StartValue = (UINT64)0ULL ;\r
   }\r
 \r
   if (EndValue != NULL) {\r
-    // Timer counts down to 0x0\r
+    // Timer counts up.\r
     *EndValue = 0xFFFFFFFFFFFFFFFFUL;\r
   }\r
 \r