hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/rwlock_rt.h
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 #ifndef __LINUX_RWLOCK_RT_H
23 #define __LINUX_RWLOCK_RT_H
34
....@@ -23,7 +24,6 @@
2324
2425 static inline int __write_trylock_rt_irqsave(rwlock_t *lock, unsigned long *flags)
2526 {
26
- /* XXX ARCH_IRQ_ENABLED */
2727 *flags = 0;
2828 return rt_write_trylock(lock);
2929 }
....@@ -105,15 +105,5 @@
105105 \
106106 __rt_rwlock_init(rwl, #rwl, &__key); \
107107 } 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);
118108
119109 #endif