]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
MdePkg/BaseSynchronizationLib: Add spin lock alignment for IA32/x64
authorJeff Fan <jeff.fan@intel.com>
Mon, 21 Mar 2016 05:36:50 +0000 (13:36 +0800)
committerJeff Fan <jeff.fan@intel.com>
Tue, 5 Apr 2016 06:07:15 +0000 (14:07 +0800)
commit5f0a17d83a6443931068d428600824276ca2bd37
tree2b35c0e698e2e58a55e8e0158b4e5074db0e1a2a
parent0f18e1eda2a807283484adfbf5eaae6a92b1ffa7
MdePkg/BaseSynchronizationLib: Add spin lock alignment for IA32/x64

From Intel(R) 64 and IA-32 Architectures Software Developer's Manual, one lock
or semaphore is suggested to be present within a cache line. If the processors
are based on Intel NetBurst microarchitecture, two cache lines are suggested.
This could minimize the bus traffic required to service locks.

Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Star Zeng <star.zeng@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>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLibInternals.h
MdePkg/Library/BaseSynchronizationLib/Ia32/InternalGetSpinLockProperties.c [new file with mode: 0644]
MdePkg/Library/BaseSynchronizationLib/Ipf/InternalGetSpinLockProperties.c [new file with mode: 0644]
MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c
MdePkg/Library/BaseSynchronizationLib/SynchronizationMsc.c