audk/MdePkg/Library/BaseSynchronizationLib
Jeff Fan 0f18e1eda2 MdePkg/BaseSynchronizationLib: Do not check timeout if lock released
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>
2016-04-05 14:07:15 +08:00
..
AArch64 MdePkg/BaseSynchronizationLib: fix AArch64 return values 2015-10-27 11:56:57 +00:00
Arm MdePkg: BaseSynchronizationLib: fix Increment/Decrement retvals for ARM 2015-03-20 12:17:02 +00:00
Ebc MdePkg/BaseSynchronizationLib: Add InterlockedCompareExchange16 2015-02-28 20:31:54 +00:00
Ia32 MdePkg: Convert non DOS format files to DOS format 2015-03-05 07:21:34 +00:00
Ipf MdePkg: Convert non DOS format files to DOS format 2015-03-05 07:21:34 +00:00
X64 MdePkg: Convert non DOS format files to DOS format 2015-03-05 07:21:34 +00:00
BaseSynchronizationLib.inf MdePkg/BaseSynchronizationLib: Add InterlockedCompareExchange16 2015-02-28 20:31:54 +00:00
BaseSynchronizationLib.uni MdePkg: Convert all .uni files to utf-8 2015-12-15 04:53:50 +00:00
BaseSynchronizationLibInternals.h MdePkg/BaseSynchronizationLib: Add InterlockedCompareExchange16 2015-02-28 20:31:54 +00:00
Synchronization.c MdePkg/BaseSynchronizationLib: Do not check timeout if lock released 2016-04-05 14:07:15 +08:00
SynchronizationGcc.c MdePkg/BaseSynchronizationLib: Do not check timeout if lock released 2016-04-05 14:07:15 +08:00
SynchronizationMsc.c MdePkg/BaseSynchronizationLib: Do not check timeout if lock released 2016-04-05 14:07:15 +08:00