Skip to content

Commit 970561d

Browse files
bug: missed 2 lines in CONFIG_INCOHERENT=0
cache operations are pointless when architecture is coherent Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
1 parent 6c29ad3 commit 970561d

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/include/sof/coherent.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,6 @@ __must_check static inline struct coherent __sparse_cache *coherent_acquire_thre
389389
struct coherent __sparse_cache *cc = uncache_to_cache(c);
390390

391391
k_mutex_lock(&c->mutex, K_FOREVER);
392-
393-
/* invalidate local copy */
394-
dcache_invalidate_region(cc, size);
395392
}
396393

397394
return (__sparse_force struct coherent __sparse_cache *)c;
@@ -403,9 +400,6 @@ static inline void coherent_release_thread(struct coherent __sparse_cache *c,
403400
if (c->shared) {
404401
struct coherent *uc = cache_to_uncache(c);
405402

406-
/* wtb and inv local data to coherent object */
407-
dcache_writeback_invalidate_region(c, size);
408-
409403
k_mutex_unlock(&uc->mutex);
410404
}
411405
}

0 commit comments

Comments
 (0)