diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-08-15 23:28:12 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-08-17 17:23:27 +0200 |
commit | e17ba59b7e8e1f67e36d8fcc46daa13370efcf11 (patch) | |
tree | bc3febd0adb8c54da9518b6d74d104e215dad8dd /kernel/locking/rwsem.c | |
parent | locking/rtmutex: Prepare RT rt_mutex_wake_q for RT locks (diff) | |
download | linux-e17ba59b7e8e1f67e36d8fcc46daa13370efcf11.tar.xz linux-e17ba59b7e8e1f67e36d8fcc46daa13370efcf11.zip |
locking/rtmutex: Guard regular sleeping locks specific functions
Guard the regular sleeping lock specific functionality, which is used for
rtmutex on non-RT enabled kernels and for mutex, rtmutex and semaphores on
RT enabled kernels so the code can be reused for the RT specific
implementation of spinlocks and rwlocks in a different compilation unit.
No functional change.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210815211303.311535693@linutronix.de
Diffstat (limited to 'kernel/locking/rwsem.c')
-rw-r--r-- | kernel/locking/rwsem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/locking/rwsem.c b/kernel/locking/rwsem.c index c017f9f2874b..2847833d5583 100644 --- a/kernel/locking/rwsem.c +++ b/kernel/locking/rwsem.c @@ -1347,6 +1347,7 @@ static inline void __downgrade_write(struct rw_semaphore *sem) #else /* !CONFIG_PREEMPT_RT */ +#define RT_MUTEX_BUILD_MUTEX #include "rtmutex.c" #define rwbase_set_and_save_current_state(state) \ |