diff --git a/testing/ostest/prioinherit.c b/testing/ostest/prioinherit.c index 1490aff2fd4..0704de829f3 100644 --- a/testing/ostest/prioinherit.c +++ b/testing/ostest/prioinherit.c @@ -31,7 +31,7 @@ #include #include -#ifdef CONFIG_ARCH_SIM +#ifdef CONFIG_SIM_WALLTIME_SLEEP # include #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 68c36e76afa..6eea5005529 100644 --- a/testing/ostest/schedlock.c +++ b/testing/ostest/schedlock.c @@ -45,7 +45,7 @@ #include #include -#ifdef CONFIG_ARCH_SIM +#ifdef CONFIG_SIM_WALLTIME_SLEEP # include #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