xtensa: Check XCHAL_HAVE_INTERRUPTS for waiti

This commit is contained in:
YAMAMOTO Takashi 2020-03-31 13:43:05 +09:00 committed by Xiang Xiao
parent b9bf9c9a2b
commit 123b3d92df
1 changed files with 2 additions and 0 deletions

View File

@ -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
}