Skip to content

Commit 6a3de61

Browse files
lyakhkv2019i
authored andcommitted
scheduler: make EDF stack size configurable
Instead of hard-coding EDF scheduler work queue thread stack size, add a Kconfig option for it. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent f3ac6ed commit 6a3de61

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

zephyr/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,11 @@ config VIRTUAL_HEAP
9090
help
9191
Enabling this option will use the virtual memory heap allocator to allocate buffers.
9292
It is based on a set of buffers whose size is predetermined.
93+
94+
config STACK_SIZE_EDF
95+
int "EDF scheduler stack size"
96+
default 8192
97+
help
98+
EDF scheduler work-queue thread stack size. Keep a power of 2.
99+
93100
endif

zephyr/edf_schedule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <zephyr/sys_clock.h>
1515

1616
static struct k_work_q edf_workq;
17-
static K_THREAD_STACK_DEFINE(edf_workq_stack, 8192);
17+
static K_THREAD_STACK_DEFINE(edf_workq_stack, CONFIG_STACK_SIZE_EDF);
1818

1919
/*
2020
* since only IPC is using the EDF scheduler - we schedule the work in the

0 commit comments

Comments
 (0)