Skip to content

Commit b10c526

Browse files
Flavio Ceolinnashif
authored andcommitted
ace: power: Only define d0i3 stack when needed
If the target is built without CONFIG_PM this stack is not used and does not need to be defined. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 1a6d868 commit b10c526

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soc/xtensa/intel_adsp/ace/power.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#define MEMCTL_INIT_BIT BIT(23)
1919
#define MEMCTL_DEFAULT_VALUE (MEMCTL_L0IBUF_EN | MEMCTL_INIT_BIT)
2020

21-
__aligned(XCHAL_DCACHE_LINESIZE) uint8_t d0i3_stack[CONFIG_MM_DRV_PAGE_SIZE];
22-
2321
__imr void power_init(void)
2422
{
2523
/* Disable idle power gating */
@@ -40,6 +38,8 @@ __imr void power_init(void)
4038

4139
#define ALL_USED_INT_LEVELS_MASK (L2_INTERRUPT_MASK | L3_INTERRUPT_MASK)
4240

41+
__aligned(XCHAL_DCACHE_LINESIZE) uint8_t d0i3_stack[CONFIG_MM_DRV_PAGE_SIZE];
42+
4343
/**
4444
* @brief Power down procedure.
4545
*

0 commit comments

Comments
 (0)