schedule: zephyr_dma_domain: Add macro for DMA domain thread prio

This commit adds ZEPHYR_DMA_DOMAIN_THREAD_PRIO macro which
holds the value of the thread priority for Zephyr DMA domain.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
This commit is contained in:
Laurentiu Mihalcea 2023-04-04 12:42:19 +03:00 committed by Kai Vehmanen
parent c3c7b33175
commit 168f47b5cb
1 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ LOG_MODULE_DECLARE(ll_schedule, CONFIG_SOF_LOG_LEVEL);
#define SEM_LIMIT 1 #define SEM_LIMIT 1
#define ZEPHYR_PDOMAIN_STACK_SIZE 8192 #define ZEPHYR_PDOMAIN_STACK_SIZE 8192
#define ZEPHYR_DMA_DOMAIN_THREAD_PRIO (CONFIG_NUM_PREEMPT_PRIORITIES - 1)
K_KERNEL_STACK_ARRAY_DEFINE(zephyr_dma_domain_stack, K_KERNEL_STACK_ARRAY_DEFINE(zephyr_dma_domain_stack,
CONFIG_CORE_COUNT, CONFIG_CORE_COUNT,
@ -305,7 +306,7 @@ static int zephyr_dma_domain_register(struct ll_schedule_domain *domain,
dt, dt,
NULL, NULL,
NULL, NULL,
CONFIG_NUM_PREEMPT_PRIORITIES - 1, ZEPHYR_DMA_DOMAIN_THREAD_PRIO,
0, 0,
K_FOREVER); K_FOREVER);