]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/spinlock.h
nfsd4: move principal name into svc_cred
[karo-tx-linux.git] / include / linux / spinlock.h
index fa0f93e4d86d2993437fc1ba80e126c4279ee44b..7d537ced949aa83b33b4c20e32c991d2123ca5a5 100644 (file)
@@ -57,7 +57,6 @@
 #include <linux/bottom_half.h>
 #include <asm/barrier.h>
 
-#include <asm/system.h>
 
 /*
  * Must define these before including other files, inline functions need them
@@ -376,10 +375,7 @@ static inline int spin_can_lock(spinlock_t *lock)
        return raw_spin_can_lock(&lock->rlock);
 }
 
-static inline void assert_spin_locked(spinlock_t *lock)
-{
-       assert_raw_spin_locked(&lock->rlock);
-}
+#define assert_spin_locked(lock)       assert_raw_spin_locked(&(lock)->rlock)
 
 /*
  * Pull the atomic_t declaration: