audk/MdePkg
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
..
Include MdePkg: Add ARM Serial Port Subtypes to DBG2 2016-04-01 16:45:54 +02:00
Library MdePkg/BaseSynchronizationLib: Do not check timeout if lock released 2016-04-05 14:07:15 +08:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
MdePkg.dec MdePkg: Add EFI_SD_MMC_PASS_THRU_PROTOCOL definition 2016-03-30 11:16:32 +08:00
MdePkg.dsc MdePkg: Add NOOPT target in MdePkg.dsc 2016-01-19 04:06:07 +00:00
MdePkg.uni MdePkg: Convert all .uni files to utf-8 2015-12-15 04:53:50 +00:00
MdePkgExtra.uni MdePkg: Convert all .uni files to utf-8 2015-12-15 04:53:50 +00:00