Skip to content

Commit 9ecca87

Browse files
jhedbergkartben
authored andcommitted
Bluetooth: Host make the long workqueue stack size configurable
Add a prompt to the long workqueue stack size, so that it can be easily fine-tuned by the application. The exact usage will depend on many factors, such as the chosen crypto backend and target architecture, so it's not possible to have "one size fits all" solutions based on the default values. Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
1 parent 22ffba5 commit 9ecca87

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

subsys/bluetooth/host/Kconfig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ config BT_LONG_WQ
1212

1313
if BT_LONG_WQ
1414
config BT_LONG_WQ_STACK_SIZE
15-
# Hidden: Long workqueue stack size. Should be derived from system
16-
# requirements.
17-
int
15+
int "Long workqueue stack size."
1816
default 4096 if NO_OPTIMIZATIONS
1917
default 1400 if BT_ECC
2018
default 1300 if BT_GATT_CACHING
2119
default 1024
20+
help
21+
The stack size used for the long workqueue. In most cases it's best to use the default
22+
values, however since the actual requirement depends on the underlying crypto backend
23+
this option can be used to finetune the stack size.
2224

2325
config BT_LONG_WQ_PRIO
2426
int "Long workqueue priority. Should be preemptible."

0 commit comments

Comments
 (0)