]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmulatorPkg/PeiTimerLib: Bug fix in NanoSecondDelay
authorDeric Cole <deric.cole@intel.com>
Wed, 8 Feb 2023 16:41:03 +0000 (08:41 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 9 Feb 2023 02:04:37 +0000 (02:04 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4339

Thunk->Sleep is expecting nanoseconds, no need to multiply by 100.

Cc: Andrew Fish <afish@apple.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Deric Cole <deric.cole@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
EmulatorPkg/Include/Protocol/EmuThunk.h
EmulatorPkg/Library/PeiTimerLib/PeiTimerLib.c

index b720023ac9c77db0d0129f44024d4cbce6c35b48..c419d0a677901c305c245cd615f057ef91919d13 100644 (file)
@@ -130,7 +130,7 @@ UINT64
 typedef\r
 VOID\r
 (EFIAPI *EMU_SLEEP)(\r
-  IN  UINT64    Milliseconds\r
+  IN  UINT64    Nanoseconds\r
   );\r
 \r
 typedef\r
index 8c4f20f42b47f0b71f93cc30be166ab5e0e1fe95..5344719f98d81520dceaa8b0f842aea54373067e 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   A non-functional instance of the Timer Library.\r
 \r
-  Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2007 - 2023, Intel Corporation. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -65,7 +65,7 @@ NanoSecondDelay (
              );\r
   if (!EFI_ERROR (Status)) {\r
     Thunk = (EMU_THUNK_PROTOCOL *)ThunkPpi->Thunk ();\r
-    Thunk->Sleep (NanoSeconds * 100);\r
+    Thunk->Sleep (NanoSeconds);\r
     return NanoSeconds;\r
   }\r
 \r