kernel/include/linux/rwsem.h
.. .. @@ -20,6 +20,10 @@ 20 20 #include <linux/osq_lock.h> 21 21 #endif 22 22 23 +#ifdef CONFIG_PREEMPT_RT_FULL24 +#include <linux/rwsem_rt.h>25 +#else /* PREEMPT_RT_FULL */26 +23 27 struct rw_semaphore; 24 28 25 29 #ifdef CONFIG_RWSEM_GENERIC_SPINLOCK .. .. @@ -119,6 +123,13 @@ 119 123 return !list_empty(&sem->wait_list); 120 124 } 121 125 126 +#endif /* !PREEMPT_RT_FULL */127 +128 +/*129 + * The functions below are the same for all rwsem implementations including130 + * the RT specific variant.131 + */132 +122 133 /* 123 134 * lock for reading 124 135 */