From b19a64df2c2fcd63d7407ef500fd3312287c8995 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Mon, 18 Oct 2021 11:12:51 +0300 Subject: [PATCH] zephyr: make SYS and RUNTIME zones cached Add caching to more heap zones. With addition of SYS, SYS_RUNTIME and RUNTIME the mapping is now aligned with XTOS allocator. Signed-off-by: Kai Vehmanen --- zephyr/wrapper.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/zephyr/wrapper.c b/zephyr/wrapper.c index 1ed5f929a269..e14b6e1ad990 100644 --- a/zephyr/wrapper.c +++ b/zephyr/wrapper.c @@ -173,8 +173,15 @@ static inline bool zone_is_cached(enum mem_zone zone) return false; #endif - if (zone == SOF_MEM_ZONE_BUFFER) + switch (zone) { + case SOF_MEM_ZONE_SYS: + case SOF_MEM_ZONE_SYS_RUNTIME: + case SOF_MEM_ZONE_RUNTIME: + case SOF_MEM_ZONE_BUFFER: return true; + default: + break; + } return false; }