Skip to content

Commit

Permalink
locking: Enable RT_MUTEXES by default on PREEMPT_RT.
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
Sebastian Andrzej Siewior authored and Peter Zijlstra committed Feb 11, 2022
1 parent 9983a9d commit 1c6f9ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2054,6 +2054,7 @@ source "arch/Kconfig"

config RT_MUTEXES
bool
default y if PREEMPT_RT

config BASE_SMALL
int
Expand Down

0 comments on commit 1c6f9ec

Please sign in to comment.