Skip to content

Commit

Permalink
Clarify alignment of GetSpinLockProperties() is byte alignment.
Browse files Browse the repository at this point in the history
Signed-off-by: lgao4
Reviewed-by: mdkinney

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13086 6f19259b-4bc3-4df7-8a09-765794883524
  • Loading branch information
lgao4 committed Mar 7, 2012
1 parent 9c92252 commit 744265e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions MdePkg/Include/Library/SynchronizationLib.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
Provides synchronization functions.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
Expand All @@ -26,8 +26,8 @@ typedef volatile UINTN SPIN_LOCK;
optimal spin lock performance.
This function retrieves the spin lock alignment requirements for optimal
performance on a given CPU architecture. The spin lock alignment must be a
power of two and is returned by this function. If there are no alignment
performance on a given CPU architecture. The spin lock alignment is byte alignment.
It must be a power of two and is returned by this function. If there are no alignment
requirements, then 1 must be returned. The spin lock synchronization
functions must function correctly if the spin lock size and alignment values
returned by this function are not used at all. These values are hints to the
Expand Down
6 changes: 3 additions & 3 deletions MdePkg/Library/BaseSynchronizationLib/Synchronization.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
Implementation of synchronization functions.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
Expand All @@ -22,8 +22,8 @@
optimal spin lock performance.
This function retrieves the spin lock alignment requirements for optimal
performance on a given CPU architecture. The spin lock alignment must be a
power of two and is returned by this function. If there are no alignment
performance on a given CPU architecture. The spin lock alignment is byte alignment.
It must be a power of two and is returned by this function. If there are no alignment
requirements, then 1 must be returned. The spin lock synchronization
functions must function correctly if the spin lock size and alignment values
returned by this function are not used at all. These values are hints to the
Expand Down
6 changes: 3 additions & 3 deletions MdePkg/Library/BaseSynchronizationLib/SynchronizationGcc.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
Implementation of synchronization functions.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
Expand All @@ -28,8 +28,8 @@
optimal spin lock performance.
This function retrieves the spin lock alignment requirements for optimal
performance on a given CPU architecture. The spin lock alignment must be a
power of two and is returned by this function. If there are no alignment
performance on a given CPU architecture. The spin lock alignment is byte alignment.
It must be a power of two and is returned by this function. If there are no alignment
requirements, then 1 must be returned. The spin lock synchronization
functions must function correctly if the spin lock size and alignment values
returned by this function are not used at all. These values are hints to the
Expand Down
6 changes: 3 additions & 3 deletions MdePkg/Library/BaseSynchronizationLib/SynchronizationMsc.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
Implementation of synchronization functions.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
Expand Down Expand Up @@ -30,8 +30,8 @@ void _ReadWriteBarrier (void);
optimal spin lock performance.
This function retrieves the spin lock alignment requirements for optimal
performance on a given CPU architecture. The spin lock alignment must be a
power of two and is returned by this function. If there are no alignment
performance on a given CPU architecture. The spin lock alignment is byte alignment.
It must be a power of two and is returned by this function. If there are no alignment
requirements, then 1 must be returned. The spin lock synchronization
functions must function correctly if the spin lock size and alignment values
returned by this function are not used at all. These values are hints to the
Expand Down

0 comments on commit 744265e

Please sign in to comment.