| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | #ifndef __LINUX_RWLOCK_RT_H |
|---|
| 2 | 3 | #define __LINUX_RWLOCK_RT_H |
|---|
| 3 | 4 | |
|---|
| .. | .. |
|---|
| 23 | 24 | |
|---|
| 24 | 25 | static inline int __write_trylock_rt_irqsave(rwlock_t *lock, unsigned long *flags) |
|---|
| 25 | 26 | { |
|---|
| 26 | | - /* XXX ARCH_IRQ_ENABLED */ |
|---|
| 27 | 27 | *flags = 0; |
|---|
| 28 | 28 | return rt_write_trylock(lock); |
|---|
| 29 | 29 | } |
|---|
| .. | .. |
|---|
| 105 | 105 | \ |
|---|
| 106 | 106 | __rt_rwlock_init(rwl, #rwl, &__key); \ |
|---|
| 107 | 107 | } while (0) |
|---|
| 108 | | - |
|---|
| 109 | | -/* |
|---|
| 110 | | - * Internal functions made global for CPU pinning |
|---|
| 111 | | - */ |
|---|
| 112 | | -void __read_rt_lock(struct rt_rw_lock *lock); |
|---|
| 113 | | -int __read_rt_trylock(struct rt_rw_lock *lock); |
|---|
| 114 | | -void __write_rt_lock(struct rt_rw_lock *lock); |
|---|
| 115 | | -int __write_rt_trylock(struct rt_rw_lock *lock); |
|---|
| 116 | | -void __read_rt_unlock(struct rt_rw_lock *lock); |
|---|
| 117 | | -void __write_rt_unlock(struct rt_rw_lock *lock); |
|---|
| 118 | 108 | |
|---|
| 119 | 109 | #endif |
|---|