diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-03-21 13:26:46 +0800 |
---|---|---|
committer | Jeff Fan <jeff.fan@intel.com> | 2016-04-05 14:07:15 +0800 |
commit | 0f18e1eda2a807283484adfbf5eaae6a92b1ffa7 (patch) | |
tree | 29a8f04d377253ec784a12dfc81b44ad3ce69f11 /BaseTools/Source/Python/Table/TableFile.py | |
parent | cfaaf99bdd412139ca7b9724e678429b2f2fb45f (diff) | |
download | edk2-platforms-0f18e1eda2a807283484adfbf5eaae6a92b1ffa7.tar.xz |
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>
Diffstat (limited to 'BaseTools/Source/Python/Table/TableFile.py')
0 files changed, 0 insertions, 0 deletions