locking/local_lock: Add PREEMPT_RT support
authorThomas Gleixner <tglx@linutronix.de>
Sun, 15 Aug 2021 21:29:28 +0000 (23:29 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 17:08:49 +0000 (19:08 +0200)
commit026659b9774e4c586baeb457557fcfc4e0ad144b
tree5355b9097ba53475d11d1c2de92555d043c9b664
parent31552385f8e9d0869117014bf8e55ba0497e3ec8
locking/local_lock: Add PREEMPT_RT support

On PREEMPT_RT enabled kernels local_lock maps to a per CPU 'sleeping'
spinlock which protects the critical section while staying preemptible. CPU
locality is established by disabling migration.

Provide the necessary types and macros to substitute the non-RT variant.

Co-developed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210815211306.023630962@linutronix.de
include/linux/local_lock_internal.h