mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
EmulatorPkg/PeiTimerLib: Bug fix in NanoSecondDelay
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>
This commit is contained in:
parent
b59e6fdae2
commit
f6ce1a5cd8
@ -130,7 +130,7 @@ UINT64
|
|||||||
typedef
|
typedef
|
||||||
VOID
|
VOID
|
||||||
(EFIAPI *EMU_SLEEP)(
|
(EFIAPI *EMU_SLEEP)(
|
||||||
IN UINT64 Milliseconds
|
IN UINT64 Nanoseconds
|
||||||
);
|
);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
A non-functional instance of the Timer Library.
|
A non-functional instance of the Timer Library.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2023, Intel Corporation. All rights reserved.<BR>
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
**/
|
**/
|
||||||
@ -65,7 +65,7 @@ NanoSecondDelay (
|
|||||||
);
|
);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
Thunk = (EMU_THUNK_PROTOCOL *)ThunkPpi->Thunk ();
|
Thunk = (EMU_THUNK_PROTOCOL *)ThunkPpi->Thunk ();
|
||||||
Thunk->Sleep (NanoSeconds * 100);
|
Thunk->Sleep (NanoSeconds);
|
||||||
return NanoSeconds;
|
return NanoSeconds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user