Skip to content

Commit

Permalink
drivers: retained_mem: Allow disabling mutex support
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nordicjm authored and carlescufi committed Jul 12, 2023
1 parent e4ca936 commit 563b454
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions drivers/retained_mem/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 16,18 @@ config RETAINED_MEM_INIT_PRIORITY
Retained memory devices initialization priority,

config RETAINED_MEM_MUTEXES
bool "Retained memory mutex support"
bool
default y
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
Use mutexes to prevent issues with concurrent retained memory access.
Should only be disabled whereby retained memory access is required
in an ISR or for special use cases.
Disable use of mutexes which prevent issues with concurrent retained
memory access. This option should only be enabled when retained
memory access is required in an ISR or for special use cases.

module = RETAINED_MEM
module-str = retained_mem
Expand Down

0 comments on commit 563b454

Please sign in to comment.