| .. | .. |
|---|
| 309 | 309 | }) |
|---|
| 310 | 310 | |
|---|
| 311 | 311 | /* Include rwlock functions */ |
|---|
| 312 | | -#ifdef CONFIG_PREEMPT_RT |
|---|
| 313 | | -# include <linux/rwlock_rt.h> |
|---|
| 314 | | -#else |
|---|
| 315 | | -# include <linux/rwlock.h> |
|---|
| 316 | | -#endif |
|---|
| 312 | +#include <linux/rwlock.h> |
|---|
| 317 | 313 | |
|---|
| 318 | 314 | /* |
|---|
| 319 | 315 | * Pull the _spin_*()/_read_*()/_write_*() functions/declarations: |
|---|
| .. | .. |
|---|
| 323 | 319 | #else |
|---|
| 324 | 320 | # include <linux/spinlock_api_up.h> |
|---|
| 325 | 321 | #endif |
|---|
| 326 | | - |
|---|
| 327 | | -#ifdef CONFIG_PREEMPT_RT |
|---|
| 328 | | -# include <linux/spinlock_rt.h> |
|---|
| 329 | | -#else /* PREEMPT_RT */ |
|---|
| 330 | 322 | |
|---|
| 331 | 323 | /* |
|---|
| 332 | 324 | * Map the spin_lock functions to the raw variants for PREEMPT_RT=n |
|---|
| .. | .. |
|---|
| 461 | 453 | } |
|---|
| 462 | 454 | |
|---|
| 463 | 455 | #define assert_spin_locked(lock) assert_raw_spin_locked(&(lock)->rlock) |
|---|
| 464 | | - |
|---|
| 465 | | -#endif /* !PREEMPT_RT */ |
|---|
| 466 | 456 | |
|---|
| 467 | 457 | /* |
|---|
| 468 | 458 | * Pull the atomic_t declaration: |
|---|