ipc: ipc_service: Parametrize workqueue stack size
Add `IPC_SERVICE_BACKEND_ICBMSG_EP_BOUND_WORK_Q_STACK_SIZE` config and parametrize its value depending on the optimization level. Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
This commit is contained in:
parent
c2fd84fdd5
commit
31689690c9
2 changed files with 10 additions and 1 deletions
|
@ -23,6 +23,14 @@ config IPC_SERVICE_BACKEND_ICBMSG_NUM_EP
|
|||
backend. The number of endpoints are applied to all the instances,
|
||||
so this value should be maximum number among all the instances.
|
||||
|
||||
config IPC_SERVICE_BACKEND_ICBMSG_EP_BOUND_WORK_Q_STACK_SIZE
|
||||
int "Workqueue stack size"
|
||||
default 1024 if NO_OPTIMIZATIONS
|
||||
default 512
|
||||
help
|
||||
Workqueue stack size for bounding processing
|
||||
(this configuration is not optimized).
|
||||
|
||||
module = IPC_SERVICE_BACKEND_ICBMSG
|
||||
module-str = ICMSG backend with separate buffers
|
||||
module-help = Sets log level for ICMsg backend with buffers
|
||||
|
|
|
@ -118,7 +118,8 @@ LOG_MODULE_REGISTER(ipc_icbmsg,
|
|||
#define FLAG_EPT_COUNT_MASK 0xFFFF
|
||||
|
||||
/** Workqueue stack size for bounding processing (this configuration is not optimized). */
|
||||
#define EP_BOUND_WORK_Q_STACK_SIZE (512U)
|
||||
#define EP_BOUND_WORK_Q_STACK_SIZE \
|
||||
(CONFIG_IPC_SERVICE_BACKEND_ICBMSG_EP_BOUND_WORK_Q_STACK_SIZE)
|
||||
|
||||
/** Workqueue priority for bounding processing. */
|
||||
#define EP_BOUND_WORK_Q_PRIORITY (CONFIG_SYSTEM_WORKQUEUE_PRIORITY)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue