From 123b3d92df81ac7bed27a6494e670db7491b8089 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 31 Mar 2020 13:43:05 +0900 Subject: [PATCH] xtensa: Check XCHAL_HAVE_INTERRUPTS for waiti --- arch/xtensa/src/common/xtensa_idle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/xtensa/src/common/xtensa_idle.c b/arch/xtensa/src/common/xtensa_idle.c index 4997a8bf8c1b9..bf6cad3ac1160 100644 --- a/arch/xtensa/src/common/xtensa_idle.c +++ b/arch/xtensa/src/common/xtensa_idle.c @@ -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 }