| .. | .. |
|---|
| 16 | 16 | #include <linux/spinlock.h> |
|---|
| 17 | 17 | #include <linux/atomic.h> |
|---|
| 18 | 18 | #include <linux/err.h> |
|---|
| 19 | | - |
|---|
| 20 | | -#ifdef CONFIG_PREEMPT_RT |
|---|
| 21 | | -#include <linux/rwsem-rt.h> |
|---|
| 22 | | -#else /* PREEMPT_RT */ |
|---|
| 23 | | - |
|---|
| 24 | 19 | #ifdef CONFIG_RWSEM_SPIN_ON_OWNER |
|---|
| 25 | 20 | #include <linux/osq_lock.h> |
|---|
| 26 | 21 | #endif |
|---|
| .. | .. |
|---|
| 139 | 134 | { |
|---|
| 140 | 135 | return !list_empty(&sem->wait_list); |
|---|
| 141 | 136 | } |
|---|
| 142 | | - |
|---|
| 143 | | -#endif /* !PREEMPT_RT */ |
|---|
| 144 | | - |
|---|
| 145 | | -/* |
|---|
| 146 | | - * The functions below are the same for all rwsem implementations including |
|---|
| 147 | | - * the RT specific variant. |
|---|
| 148 | | - */ |
|---|
| 149 | 137 | |
|---|
| 150 | 138 | /* |
|---|
| 151 | 139 | * lock for reading |
|---|