Changed SPINLOCK_PROFILE back to #if so that defining SPINLOC_PROFILE 0 turns

off the profilign of spinlocks
This commit is contained in:
Mark Riddoch
2014-09-15 09:38:58 +01:00
parent bc320d1514
commit fb4f74ed61
2 changed files with 9 additions and 9 deletions

View File

@ -45,7 +45,7 @@
*/
typedef struct spinlock {
int lock; /*< Is the lock held? */
#if defined(SPINLOCK_PROFILE)
#if SPINLOCK_PROFILE
int spins; /*< Number of spins on this lock */
int maxspins; /*< Max no of spins to acquire lock */
int acquired; /*< No. of times lock was acquired */
@ -63,7 +63,7 @@ typedef struct spinlock {
#define FALSE false
#endif
#if defined(SPINLOCK_PROFILE)
#if SPINLOCK_PROFILE
#define SPINLOCK_INIT { 0, 0, 0, 0, 0, 0, 0, 0 }
#else
#define SPINLOCK_INIT { 0 }