diff options
author | 2009-12-02 20:02:59 +0100 | |
---|---|---|
committer | 2009-12-14 23:55:32 +0100 | |
commit | c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3 (patch) | |
tree | 6cc8d1fd37ffa6d02481353857b92734241f4dd0 /include/linux/spinlock_api_up.h | |
parent | locking: Convert raw_rwlock functions to arch_rwlock (diff) | |
download | linux-c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3.tar.gz linux-c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3.tar.bz2 linux-c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3.zip |
locking: Implement new raw_spinlock
Now that the raw_spin name space is freed up, we can implement
raw_spinlock and the related functions which are used to annotate the
locks which are not converted to sleeping spinlocks in preempt-rt.
A side effect is that only such locks can be used with the low level
lock fsunctions which circumvent lockdep.
For !rt spin_* functions are mapped to the raw_spin* implementations.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/spinlock_api_up.h')
-rw-r--r-- | include/linux/spinlock_api_up.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/spinlock_api_up.h b/include/linux/spinlock_api_up.h index 04e1d3164576..3a9e27adecf9 100644 --- a/include/linux/spinlock_api_up.h +++ b/include/linux/spinlock_api_up.h @@ -16,7 +16,7 @@ #define in_lock_functions(ADDR) 0 -#define assert_spin_locked(lock) do { (void)(lock); } while (0) +#define assert_raw_spin_locked(lock) do { (void)(lock); } while (0) /* * In the UP-nondebug case there's no real locking going on, so the |