Skip to content

Commit

Permalink
[SPARC64]: Fix SMP build.
Browse files Browse the repository at this point in the history
Kill build failures in the SMP+!PREEMPT case introduced
by Al Viro's spinlock.h changes.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 25, 2005
1 parent 24dc6ea commit 9a59c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-sparc64/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ typedef struct {

#define spin_unlock_wait(lp) \
do { membar("#LoadLoad"); \
} while(lp->lock)
} while((lp)->lock)

static inline void _raw_spin_lock(spinlock_t *lock)
{
Expand Down Expand Up @@ -149,7 +149,7 @@ typedef struct {
unsigned int break_lock;
#endif
} rwlock_t;
#define RW_LOCK_UNLOCKED {0,}
#define RW_LOCK_UNLOCKED (rwlock_t) {0,}
#define rwlock_init(lp) do { *(lp) = RW_LOCK_UNLOCKED; } while(0)

static void inline __read_lock(rwlock_t *lock)
Expand Down

0 comments on commit 9a59c18

Please sign in to comment.