diff --git a/arch/xtensa/src/common/xtensa_cache.c b/arch/xtensa/src/common/xtensa_cache.c index 930c96a759..d64804e1d3 100644 --- a/arch/xtensa/src/common/xtensa_cache.c +++ b/arch/xtensa/src/common/xtensa_cache.c @@ -498,10 +498,12 @@ void up_clean_dcache(uintptr_t start, uintptr_t end) start &= ~(XCHAL_DCACHE_LINESIZE - 1); +#ifndef CONFIG_SMP if ((end - start) >= XCHAL_DCACHE_SIZE) { return up_clean_dcache_all(); } +#endif for (; start < end; start += XCHAL_DCACHE_LINESIZE) { @@ -580,10 +582,12 @@ void up_flush_dcache(uintptr_t start, uintptr_t end) start &= ~(XCHAL_DCACHE_LINESIZE - 1); +#ifndef CONFIG_SMP if ((end - start) >= XCHAL_DCACHE_SIZE) { return up_clean_dcache_all(); } +#endif for (; start < end; start += XCHAL_DCACHE_LINESIZE) {