File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 31
31
#include <stdlib.h>
32
32
#include <unistd.h>
33
33
34
- #ifdef CONFIG_ARCH_SIM
34
+ #ifdef CONFIG_SIM_WALLTIME_SLEEP
35
35
# include <nuttx/arch.h>
36
36
#endif
37
37
@@ -251,7 +251,7 @@ static FAR void *highpri_thread(FAR void *parameter)
251
251
252
252
static inline void hog_cpu (void )
253
253
{
254
- #ifdef CONFIG_ARCH_SIM
254
+ #ifdef CONFIG_SIM_WALLTIME_SLEEP
255
255
/* The simulator doesn't have any mechanism to do asynchronous pre-emption
256
256
* (basically because it doesn't have any interrupts/asynchronous events).
257
257
* The simulator does "fake" a timer interrupt in up_idle() -- the idle
Original file line number Diff line number Diff line change 30
30
#include <unistd.h>
31
31
#include <stdint.h>
32
32
33
- #ifdef CONFIG_ARCH_SIM
33
+ #ifdef CONFIG_SIM_WALLTIME_SLEEP
34
34
# include <nuttx/arch.h>
35
35
#endif
36
36
@@ -97,7 +97,7 @@ static FAR void *lowpri_thread(FAR void *parameter)
97
97
98
98
while (!g_locked )
99
99
{
100
- #ifdef CONFIG_ARCH_SIM
100
+ #ifdef CONFIG_SIM_WALLTIME_SLEEP
101
101
/* The simulator doesn't have any mechanism to do asynchronous
102
102
* pre-emption (basically because it doesn't have any
103
103
* interrupts/asynchronous events). The simulator does "fake" a timer
You can’t perform that action at this time.
0 commit comments