intel_adsp/ace: pm: Remove unnecessary cache flush
core_desc is not located (nor is accessed) in cached memory. There is no need to flush it. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
301055dec0
commit
e728adffd2
1 changed files with 6 additions and 0 deletions
|
|
@ -150,7 +150,13 @@ static ALWAYS_INLINE void _save_core_context(uint32_t core_id)
|
|||
core_desc[core_id].thread_ptr = XTENSA_RUR("THREADPTR");
|
||||
__asm__ volatile("mov %0, a0" : "=r"(core_desc[core_id].a0));
|
||||
__asm__ volatile("mov %0, a1" : "=r"(core_desc[core_id].a1));
|
||||
|
||||
#if CONFIG_MP_MAX_NUM_CPUS == 1
|
||||
/* With one core only, the memory is mapped in cache and we need to flush
|
||||
* it.
|
||||
*/
|
||||
sys_cache_data_flush_range(&core_desc[core_id], sizeof(struct core_state));
|
||||
#endif
|
||||
}
|
||||
|
||||
static ALWAYS_INLINE void _restore_core_context(void)
|
||||
|
|
|
|||
Loading…
Reference in a new issue