drivers: retained_mem: 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:
parent
e4ca936551
commit
563b4540fa
|
@ -16,13 +16,18 @@ config RETAINED_MEM_INIT_PRIORITY
|
||||||
Retained memory devices initialization priority,
|
Retained memory devices initialization priority,
|
||||||
|
|
||||||
config RETAINED_MEM_MUTEXES
|
config RETAINED_MEM_MUTEXES
|
||||||
bool "Retained memory mutex support"
|
bool
|
||||||
default y
|
default y
|
||||||
depends on MULTITHREADING
|
depends on MULTITHREADING
|
||||||
|
depends on !RETAINED_MEM_MUTEX_FORCE_DISABLE
|
||||||
|
|
||||||
|
config RETAINED_MEM_MUTEX_FORCE_DISABLE
|
||||||
|
bool "Disable retained memory mutex support"
|
||||||
|
depends on MULTITHREADING
|
||||||
help
|
help
|
||||||
Use mutexes to prevent issues with concurrent retained memory access.
|
Disable use of mutexes which prevent issues with concurrent retained
|
||||||
Should only be disabled whereby retained memory access is required
|
memory access. This option should only be enabled when retained
|
||||||
in an ISR or for special use cases.
|
memory access is required in an ISR or for special use cases.
|
||||||
|
|
||||||
module = RETAINED_MEM
|
module = RETAINED_MEM
|
||||||
module-str = retained_mem
|
module-str = retained_mem
|
||||||
|
|
Loading…
Reference in a new issue