From eca1aff7cab177134771dea6871c0a164d18622a Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Thu, 10 Mar 2022 10:14:29 +0100 Subject: [PATCH] cache: use the .shared_data section with single core too Shared objects are placed into a separate section to make sure they don't share cache lines with core-local data. This must also be done in single-core configurations because those configurations perform uncached access and manage cache manually too. Signed-off-by: Guennadi Liakhovetski --- src/platform/intel/cavs/include/cavs/lib/memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/intel/cavs/include/cavs/lib/memory.h b/src/platform/intel/cavs/include/cavs/lib/memory.h index b78fd15eb..92efae885 100644 --- a/src/platform/intel/cavs/include/cavs/lib/memory.h +++ b/src/platform/intel/cavs/include/cavs/lib/memory.h @@ -77,7 +77,7 @@ struct sof; * uncached memory region. SMP platforms without uncache can simply * align to cache line size instead. */ -#if CONFIG_CORE_COUNT > 1 && !defined(UNIT_TEST) && !defined __ZEPHYR__ +#if !defined(UNIT_TEST) && !defined __ZEPHYR__ #define SHARED_DATA __section(".shared_data") __attribute__((aligned(PLATFORM_DCACHE_ALIGN))) #else #define SHARED_DATA