File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,23 @@ use of it.
215
215
for example, if the new work items perform blocking operations that
216
216
would delay other system workqueue processing to an unacceptable degree.
217
217
218
+ Stack Size
219
+ ==========
220
+
221
+ By default the stack size of the system workqueue is determined co-operatively
222
+ among all users of the workqueue. The build system compares the value of all
223
+ Kconfig symbols matching the pattern
224
+ ``CONFIG_SYSTEM_WORKQUEUE_MIN_STACK_SIZE_* `` and selects the largest value as
225
+ the stack size. :kconfig:option: `CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE ` is
226
+ included in this calculation by its value being copied into
227
+ :kconfig:option: `CONFIG_SYSTEM_WORKQUEUE_MIN_STACK_SIZE_DEFAULT `.
228
+
229
+ .. note ::
230
+ This behaviour can be disabled through
231
+ :kconfig:option: `CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE_IGNORE_MIN `, in which
232
+ case the value of :kconfig:option: `CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE ` will
233
+ be used directly.
234
+
218
235
How to Use Workqueues
219
236
*********************
220
237
Original file line number Diff line number Diff line change @@ -26,6 +26,15 @@ Build System
26
26
Kernel
27
27
******
28
28
29
+ * The stack size of the system workqueue is now computed co-operatively
30
+ among users as the maximum value of any Kconfig options whose name starts
31
+ with ``CONFIG_SYSTEM_WORKQUEUE_MIN_STACK_SIZE_ ``. The existing
32
+ :kconfig:option: `CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE ` symbol value is copied
33
+ to :kconfig:option: `CONFIG_SYSTEM_WORKQUEUE_MIN_STACK_SIZE_DEFAULT ` so that
34
+ it is included in the calculation without any application changes.
35
+ The previous behaviour can be selected with
36
+ :kconfig:option: `CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE_IGNORE_MIN `.
37
+
29
38
Boards
30
39
******
31
40
You can’t perform that action at this time.
0 commit comments