Skip to content

Commit 6754b39

Browse files
committed
retention: Allow disabling mutex support
Changes the Kconfig option to allow disabling mutex support, this is to allow other Kconfig options to disable the feature. Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent ae13b51 commit 6754b39

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

subsys/retention/Kconfig

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,18 @@ config RETENTION_INIT_PRIORITY
2020
priorities for retained memory drivers.
2121

2222
config RETENTION_MUTEXES
23-
bool "Retention mutex support"
23+
bool
2424
default y
2525
depends on MULTITHREADING
26+
depends on !RETENTION_MUTEX_FORCE_DISABLE
27+
28+
config RETENTION_MUTEX_FORCE_DISABLE
29+
bool "Disable retention mutex support"
30+
depends on MULTITHREADING
2631
help
27-
Use mutexes to prevent issues with concurrent retention device
28-
access. Should only be disabled whereby retained memory access is
29-
required in an ISR or for special use cases.
32+
Disable use of mutexes which prevent issues with concurrent retention
33+
device access. This option should only be enabled when retention
34+
access is required in an ISR or for special use cases.
3035

3136
config RETENTION_BUFFER_SIZE
3237
int "Retention stack buffer sizes"

0 commit comments

Comments
 (0)