You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/03/31 06:32:15 UTC

[incubator-nuttx] branch master updated: xtensa: Check XCHAL_HAVE_INTERRUPTS for waiti

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 123b3d9  xtensa: Check XCHAL_HAVE_INTERRUPTS for waiti
123b3d9 is described below

commit 123b3d92df81ac7bed27a6494e670db7491b8089
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Mar 31 13:43:05 2020 +0900

    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 4997a8b..bf6cad3 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
 }