Skip to content

Commit

Permalink
intel_adsp/cavs: power: Restore interruptions after sleep
Browse files Browse the repository at this point in the history
Explicitly restore interruptions in pm_state_exit_post_ops.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
  • Loading branch information
Flavio Ceolin committed Jan 20, 2024
1 parent 5dbc8f3 commit dafe585
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions soc/xtensa/intel_adsp/cavs/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ void pm_state_exit_post_ops(enum pm_state state, uint8_t substate_id)
} else {
__ASSERT(false, "invalid argument - unsupported power state");
}

/**
* We don't have the key used to lock interruptions here.
* Just set PS.INTLEVEL to 0.
*/
__asm__ volatile ("rsil a2, 0");
}
#endif /* CONFIG_PM */

Expand Down

0 comments on commit dafe585

Please sign in to comment.