File tree 2 files changed +4
-4
lines changed
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 45
45
#include <unistd.h>
46
46
#include <stdint.h>
47
47
48
- #ifdef CONFIG_ARCH_SIM
48
+ #ifdef CONFIG_SIM_WALLTIME_SLEEP
49
49
# include <nuttx/arch.h>
50
50
#endif
51
51
@@ -112,7 +112,7 @@ static FAR void *lowpri_thread(FAR void *parameter)
112
112
113
113
while (!g_locked )
114
114
{
115
- #ifdef CONFIG_ARCH_SIM
115
+ #ifdef CONFIG_SIM_WALLTIME_SLEEP
116
116
/* The simulator doesn't have any mechanism to do asynchronous
117
117
* pre-emption (basically because it doesn't have any
118
118
* interrupts/asynchronous events). The simulator does "fake" a timer
You can’t perform that action at this time.
0 commit comments