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/rtmutex_api.c | |
parent | 456cfbc65cd072f4f53936ee5a37eb1447a7d3ba (diff) | |
download | linux-e17ba59b7e8e1f67e36d8fcc46daa13370efcf11.tar.gz linux-e17ba59b7e8e1f67e36d8fcc46daa13370efcf11.tar.bz2 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/rtmutex_api.c')
-rw-r--r-- | kernel/locking/rtmutex_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/locking/rtmutex_api.c b/kernel/locking/rtmutex_api.c index 56403dc5c2fc..7f3ac096250d 100644 --- a/kernel/locking/rtmutex_api.c +++ b/kernel/locking/rtmutex_api.c @@ -5,6 +5,7 @@ #include <linux/spinlock.h> #include <linux/export.h> +#define RT_MUTEX_BUILD_MUTEX #include "rtmutex.c" /* |