Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 61633
b: refs/heads/master
c: 21f8ca3
h: refs/heads/master
i:
  61631: bacac5c
v: v3
  • Loading branch information
Peter Zijlstra authored and Linus Torvalds committed Jul 19, 2007
1 parent 906f415 commit 5cef39c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b7f13bd26a0c1d394a1a1f2bb6de5130c3a3843
refs/heads/master: 21f8ca3bf6198bd21e3c4cc820af2ccf753a6ec8
4 changes: 2 additions & 2 deletions trunk/include/linux/spinlock_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
* Released under the General Public License (GPL).
*/

#include <linux/lockdep.h>

#if defined(CONFIG_SMP)
# include <asm/spinlock_types.h>
#else
# include <linux/spinlock_types_up.h>
#endif

#include <linux/lockdep.h>

typedef struct {
raw_spinlock_t raw_lock;
#if defined(CONFIG_PREEMPT) && defined(CONFIG_SMP)
Expand Down
9 changes: 1 addition & 8 deletions trunk/include/linux/spinlock_types_up.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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 { }
Expand Down

0 comments on commit 5cef39c

Please sign in to comment.