Skip to content

Commit b1acb18

Browse files
committed
schedule: zephyr_ll_user: make double-mapping conditional
Only double-map the LL resources if CONFIG_CACHE_HAS_MIRRORED_MEMORY_REGIONS is set. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent 4555d75 commit b1acb18

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/schedule/zephyr_ll_user.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,15 @@ static struct k_heap *zephyr_ll_heap_init(void)
5555
if (ret)
5656
k_panic();
5757

58+
#ifdef CONFIG_CACHE_HAS_MIRRORED_MEMORY_REGIONS
5859
mem_partition.start = (uintptr_t)sys_cache_uncached_ptr_get(heap->heap.init_mem);
5960
mem_partition.attr = K_MEM_PARTITION_P_RW_U_RW;
6061
ret = k_mem_domain_add_partition(&ll_mem_resources.mem_domain, &mem_partition);
6162
tr_dbg(&ll_tr, "init ll heap %p, size %u (uncached), ret %d",
6263
(void *)mem_partition.start, heap->heap.init_bytes, ret);
6364
if (ret)
6465
k_panic();
66+
#endif
6567

6668
return heap;
6769
}

0 commit comments

Comments
 (0)