| .. | .. |
|---|
| 298 | 298 | }) |
|---|
| 299 | 299 | |
|---|
| 300 | 300 | /* Include rwlock functions */ |
|---|
| 301 | | -#include <linux/rwlock.h> |
|---|
| 301 | +#ifdef CONFIG_PREEMPT_RT_FULL |
|---|
| 302 | +# include <linux/rwlock_rt.h> |
|---|
| 303 | +#else |
|---|
| 304 | +# include <linux/rwlock.h> |
|---|
| 305 | +#endif |
|---|
| 302 | 306 | |
|---|
| 303 | 307 | /* |
|---|
| 304 | 308 | * Pull the _spin_*()/_read_*()/_write_*() functions/declarations: |
|---|
| .. | .. |
|---|
| 308 | 312 | #else |
|---|
| 309 | 313 | # include <linux/spinlock_api_up.h> |
|---|
| 310 | 314 | #endif |
|---|
| 315 | + |
|---|
| 316 | +#ifdef CONFIG_PREEMPT_RT_FULL |
|---|
| 317 | +# include <linux/spinlock_rt.h> |
|---|
| 318 | +#else /* PREEMPT_RT_FULL */ |
|---|
| 311 | 319 | |
|---|
| 312 | 320 | /* |
|---|
| 313 | 321 | * Map the spin_lock functions to the raw variants for PREEMPT_RT=n |
|---|
| .. | .. |
|---|
| 429 | 437 | |
|---|
| 430 | 438 | #define assert_spin_locked(lock) assert_raw_spin_locked(&(lock)->rlock) |
|---|
| 431 | 439 | |
|---|
| 440 | +#endif /* !PREEMPT_RT_FULL */ |
|---|
| 441 | + |
|---|
| 432 | 442 | /* |
|---|
| 433 | 443 | * Pull the atomic_t declaration: |
|---|
| 434 | 444 | * (asm-mips/atomic.h needs above definitions) |
|---|