Skip to content

Commit

Permalink
bluetooth: controller: Put ECDH driver in the MPSL work queue by default
Browse files Browse the repository at this point in the history
Puts the SDC ECDH driver in the MPSL work queue by default, unless
BT_SMP is selected. It will also be put in the MPSL work queue by
default when split host/controller build configurations are used.

It's expected that many use-cases do not use this module,
and that many applications that do use it, do not necessarily need to
allocate a dedicated thread for its processing. Placing the ECDH work
in the MPSL work queue by default saves considerable RAM for those
use-cases.

We estimate that the ECDH driver processing can take time in the dozens
of milliseconds (possibly more) in the worst case.

Signed-off-by: Olivier Lesage <[email protected]>
  • Loading branch information
olivier-le-sage authored and nordicjm committed Apr 2, 2024
1 parent 8f2d913 commit 2b136fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subsys/bluetooth/controller/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ config BT_CTLR_ECDH_STACK_SIZE
config BT_CTLR_ECDH_IN_MPSL_WORK
bool "ECDH processing in MPSL workqueue"
depends on BT_CTLR_ECDH_LIB_OBERON
default y if !BT_SMP
help
Run the ECDH processing in the MPSL workqueue instead of in a
dedicated pre-emptible thread.
Expand Down

0 comments on commit 2b136fe

Please sign in to comment.