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>
This commit is contained in:
Jamie McCrae 2023-06-15 11:08:53 +01:00 committed by Carles Cufí
parent 563b4540fa
commit 566fd8cb7c

View file

@ -20,13 +20,18 @@ config RETENTION_INIT_PRIORITY
priorities for retained memory drivers. priorities for retained memory drivers.
config RETENTION_MUTEXES config RETENTION_MUTEXES
bool "Retention mutex support" bool
default y default y
depends on MULTITHREADING depends on MULTITHREADING
depends on !RETENTION_MUTEX_FORCE_DISABLE
config RETENTION_MUTEX_FORCE_DISABLE
bool "Disable retention mutex support"
depends on MULTITHREADING
help help
Use mutexes to prevent issues with concurrent retention device Disable use of mutexes which prevent issues with concurrent retention
access. Should only be disabled whereby retained memory access is device access. This option should only be enabled when retention
required in an ISR or for special use cases. access is required in an ISR or for special use cases.
config RETENTION_BUFFER_SIZE config RETENTION_BUFFER_SIZE
int "Retention stack buffer sizes" int "Retention stack buffer sizes"