Skip to content

Commit 105633d

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 803bc59 commit 105633d

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
@@ -51,13 +51,15 @@ static struct k_heap *zephyr_ll_heap_init(void)
5151
if (ret)
5252
k_panic();
5353

54+
#ifdef CONFIG_CACHE_HAS_MIRRORED_MEMORY_REGIONS
5455
mem_partition.start = (uintptr_t)sys_cache_uncached_ptr_get(heap->heap.init_mem);
5556
mem_partition.attr = K_MEM_PARTITION_P_RW_U_RW;
5657
ret = k_mem_domain_add_partition(&ll_mem_resources.mem_domain, &mem_partition);
5758
tr_dbg(&ll_tr, "init ll heap %p, size %u (uncached), ret %d",
5859
(void *)mem_partition.start, heap->heap.init_bytes, ret);
5960
if (ret)
6061
k_panic();
62+
#endif
6163

6264
return heap;
6365
}

0 commit comments

Comments
 (0)