Skip to content

Commit

Permalink
xtensa: Check XCHAL_HAVE_INTERRUPTS for waiti
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt authored and xiaoxiang781216 committed Mar 31, 2020
1 parent b9bf9c9 commit 123b3d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/xtensa/src/common/xtensa_idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,7 @@ void up_idle(void)
* sleep in a reduced power mode until an interrupt occurs to save power
*/

#if XCHAL_HAVE_INTERRUPTS
__asm__ __volatile__ ("waiti 0");
#endif
}

0 comments on commit 123b3d9

Please sign in to comment.