Skip to content

Commit

Permalink
[nrf noup] [nrfconnect] Enable NVS lookup cache settings optimization
Browse files Browse the repository at this point in the history
By default, use the lookup cache hash function optimized
for NVS used as the settings backend. This assumes that
a user application uses Zephyr settings API and does not
write to the NVS directly.
  • Loading branch information
Damian-Nordic committed Oct 5, 2023
1 parent 3b93541 commit ba4b30a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions config/nrfconnect/chip-module/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

rsource "../../zephyr/Kconfig"

config CHIP
imply NVS_LOOKUP_CACHE
imply NVS_LOOKUP_CACHE_FOR_SETTINGS

if CHIP

# See config/zephyr/Kconfig for full definition
Expand Down
3 changes: 0 additions & 3 deletions config/nrfconnect/chip-module/Kconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,6 @@ endif # BOARD_NRF7002DK_NRF5340_CPUAPP
config CHIP_EXTENDED_DISCOVERY
default n

config NVS_LOOKUP_CACHE
default y

config NVS_LOOKUP_CACHE_SIZE
default 512

Expand Down

0 comments on commit ba4b30a

Please sign in to comment.