|
@@ -12,14 +12,10 @@
|
|
|
* Released under the General Public License (GPL).
|
|
|
*/
|
|
|
|
|
|
-#if defined(CONFIG_DEBUG_SPINLOCK) || \
|
|
|
- defined(CONFIG_DEBUG_LOCK_ALLOC)
|
|
|
+#ifdef CONFIG_DEBUG_SPINLOCK
|
|
|
|
|
|
typedef struct {
|
|
|
volatile unsigned int slock;
|
|
|
-#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
|
|
- struct lockdep_map dep_map;
|
|
|
-#endif
|
|
|
} raw_spinlock_t;
|
|
|
|
|
|
#define __RAW_SPIN_LOCK_UNLOCKED { 1 }
|
|
@@ -34,9 +30,6 @@ typedef struct { } raw_spinlock_t;
|
|
|
|
|
|
typedef struct {
|
|
|
/* no debug version on UP */
|
|
|
-#ifdef CONFIG_DEBUG_LOCK_ALLOC
|
|
|
- struct lockdep_map dep_map;
|
|
|
-#endif
|
|
|
} raw_rwlock_t;
|
|
|
|
|
|
#define __RAW_RW_LOCK_UNLOCKED { }
|