Skip to content

Commit 248d3d0

Browse files
committed
soc: intel: ace: Fix power down compilation issue
CONFIG_ADSP_POWER_DOWN_HPSRAM may not be defined (when it's "n") so update the code accordingly so that power_down() is called with correct parameters. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 6065ddb commit 248d3d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soc/intel/intel_adsp/ace/power.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ void pm_state_set(enum pm_state state, uint8_t substate_id)
340340
sys_cache_data_flush_range((void *)imr_layout, sizeof(*imr_layout));
341341
#endif /* CONFIG_ADSP_IMR_CONTEXT_SAVE */
342342
/* do power down - this function won't return */
343-
power_down(true, CONFIG_ADSP_POWER_DOWN_HPSRAM, true);
343+
power_down(true, IS_ENABLED(CONFIG_ADSP_POWER_DOWN_HPSRAM), true);
344344
} else {
345345
power_gate_entry(cpu);
346346
}

0 commit comments

Comments
 (0)