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>
Showing
- include/linux/spinlock.h 194 additions, 64 deletionsinclude/linux/spinlock.h
- include/linux/spinlock_api_smp.h 27 additions, 24 deletionsinclude/linux/spinlock_api_smp.h
- include/linux/spinlock_api_up.h 1 addition, 1 deletioninclude/linux/spinlock_api_up.h
- include/linux/spinlock_types.h 38 additions, 11 deletionsinclude/linux/spinlock_types.h
- kernel/mutex-debug.h 6 additions, 6 deletionskernel/mutex-debug.h
- kernel/sched.c 1 addition, 1 deletionkernel/sched.c
- kernel/spinlock.c 18 additions, 16 deletionskernel/spinlock.c
- lib/spinlock_debug.c 12 additions, 12 deletionslib/spinlock_debug.c
Loading
Please register or sign in to comment