]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitffcf1cd0aa983c149825d32757929227628115fa
tree5355b9097ba53475d11d1c2de92555d043c9b664
parentafe1db7d85e0b603d8a1e52d9fd1eec510e24035
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