Skip to content

Commit

Permalink
intel_adsp: remove deprecated cache macros
Browse files Browse the repository at this point in the history
SOC_DCACHE_FLUSH and SOC_DCACHE_INVALIDATE are not being used anywhere.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information
nashif committed Jun 23, 2023
1 parent c88a9ef commit c62e559
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions soc/xtensa/intel_adsp/common/include/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ extern void soc_start_core(int cpu_num);
extern bool soc_cpus_active[CONFIG_MP_MAX_NUM_CPUS];

/* Legacy cache APIs still used in a few places */
#define SOC_DCACHE_FLUSH(addr, size) \
sys_cache_data_flush_range((addr), (size))
#define SOC_DCACHE_INVALIDATE(addr, size) \
sys_cache_data_invd_range((addr), (size))
#define z_soc_cached_ptr(p) arch_xtensa_cached_ptr(p)
#define z_soc_uncached_ptr(p) arch_xtensa_uncached_ptr(p)

Expand Down
6 changes: 0 additions & 6 deletions soc/xtensa/nxp_adsp/common/include/adsp/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,4 @@

#include <xtensa/hal.h>

/* Macros for data cache operations */
#define SOC_DCACHE_FLUSH(addr, size) \
sys_cache_data_flush_range((addr), (size))
#define SOC_DCACHE_INVALIDATE(addr, size) \
sys_cache_data_invd_range((addr), (size))

#endif

0 comments on commit c62e559

Please sign in to comment.