]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseS3StallLib/S3StallLib.c
2 Stall Services that do stall and also enable the Stall operatation
3 to be replayed during an S3 resume. This library class maps directly on top
6 Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
8 SPDX-License-Identifier: BSD-2-Clause-Patent
14 #include <Library/TimerLib.h>
15 #include <Library/DebugLib.h>
16 #include <Library/S3BootScriptLib.h>
17 #include <Library/S3StallLib.h>
21 Stalls the CPU for at least the given number of microseconds and and saves
22 the value in the S3 script to be replayed on S3 resume.
24 Stalls the CPU for the number of microseconds specified by MicroSeconds.
26 @param MicroSeconds The minimum number of microseconds to delay.
39 Status
= S3BootScriptSaveStall (MicroSecondDelay (MicroSeconds
));
40 ASSERT (Status
== RETURN_SUCCESS
);