mirror of https://github.com/acidanthera/audk.git
0f18e1eda2
Current AcquireSpinLock() will check if timeout happens when PcdSpinLockTimeout is not zero, even though the spin lock is already released. It may do unnecessary operation to read timer's counter. This update is trying to acquire spin lock firstly. If it could be acquired successfully, needn't to check timeout at all. Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> |
||
---|---|---|
.. | ||
Include | ||
Library | ||
Contributions.txt | ||
License.txt | ||
MdePkg.dec | ||
MdePkg.dsc | ||
MdePkg.uni | ||
MdePkgExtra.uni |