Skip to content

Commit 1c6f9ec

Browse files
Sebastian Andrzej SiewiorPeter Zijlstra
authored andcommitted
locking: Enable RT_MUTEXES by default on PREEMPT_RT.
The CONFIG_RT_MUTEXES option is enabled by CONFIG_FUTEX and CONFIG_I2C. If both are disabled then a CONFIG_PREEMPT_RT build fails to compile. It is not possible to have a PREEMPT_RT kernel without RT_MUTEX support because RT_MUTEX based locking is always used. Enable CONFIG_RT_MUTEXES by default on PREEMPT_RT builds. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 9983a9d commit 1c6f9ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

init/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,6 +2054,7 @@ source "arch/Kconfig"
20542054

20552055
config RT_MUTEXES
20562056
bool
2057+
default y if PREEMPT_RT
20572058

20582059
config BASE_SMALL
20592060
int

0 commit comments

Comments
 (0)