diff options
Diffstat (limited to 'MdePkg/Library/BaseSynchronizationLib/Ia32/InternalGetSpinLockProperties.c')
-rw-r--r-- | MdePkg/Library/BaseSynchronizationLib/Ia32/InternalGetSpinLockProperties.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseSynchronizationLib/Ia32/InternalGetSpinLockProperties.c b/MdePkg/Library/BaseSynchronizationLib/Ia32/InternalGetSpinLockProperties.c index 3e270a171c..aba0825c7c 100644 --- a/MdePkg/Library/BaseSynchronizationLib/Ia32/InternalGetSpinLockProperties.c +++ b/MdePkg/Library/BaseSynchronizationLib/Ia32/InternalGetSpinLockProperties.c @@ -44,7 +44,7 @@ InternalGetSpinLockProperties ( // In processors based on Intel NetBurst microarchitecture, use two cache lines
//
ModelId = ModelId | ((RegEax >> 12) & 0xf0);
- if (ModelId <= 0x04 || ModelId == 0x06) {
+ if ((ModelId <= 0x04) || (ModelId == 0x06)) {
CacheLineSize *= 2;
}
}
@@ -55,4 +55,3 @@ InternalGetSpinLockProperties ( return CacheLineSize;
}
-
|