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/nuttx-apps.git
commit 3648c0cc5ca09c3a01c339b9fc335180033e048d Author: Petro Karashchenko <[email protected]> AuthorDate: Mon Apr 17 17:51:29 2023 +0300 testing/ostest: call up_idle() only in case of CONFIG_SIM_WALLTIME_SLEEP=y Signed-off-by: Petro Karashchenko <[email protected]> --- testing/ostest/prioinherit.c | 4 ++-- testing/ostest/schedlock.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/ostest/prioinherit.c b/testing/ostest/prioinherit.c index 1490aff2f..0704de829 100644 --- a/testing/ostest/prioinherit.c +++ b/testing/ostest/prioinherit.c @@ -31,7 +31,7 @@ #include <stdlib.h> #include <unistd.h> -#ifdef CONFIG_ARCH_SIM +#ifdef CONFIG_SIM_WALLTIME_SLEEP # include <nuttx/arch.h> #endif @@ -251,7 +251,7 @@ static FAR void *highpri_thread(FAR void *parameter) static inline void hog_cpu(void) { -#ifdef CONFIG_ARCH_SIM +#ifdef CONFIG_SIM_WALLTIME_SLEEP /* The simulator doesn't have any mechanism to do asynchronous pre-emption * (basically because it doesn't have any interrupts/asynchronous events). * The simulator does "fake" a timer interrupt in up_idle() -- the idle diff --git a/testing/ostest/schedlock.c b/testing/ostest/schedlock.c index 68c36e76a..6eea50055 100644 --- a/testing/ostest/schedlock.c +++ b/testing/ostest/schedlock.c @@ -45,7 +45,7 @@ #include <unistd.h> #include <stdint.h> -#ifdef CONFIG_ARCH_SIM +#ifdef CONFIG_SIM_WALLTIME_SLEEP # include <nuttx/arch.h> #endif @@ -112,7 +112,7 @@ static FAR void *lowpri_thread(FAR void *parameter) while (!g_locked) { -#ifdef CONFIG_ARCH_SIM +#ifdef CONFIG_SIM_WALLTIME_SLEEP /* The simulator doesn't have any mechanism to do asynchronous * pre-emption (basically because it doesn't have any * interrupts/asynchronous events). The simulator does "fake" a timer
