File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
include/zephyr/drivers/timer Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
22
extern "C" {
23
23
#endif
24
24
25
+ #define SYS_CLOCK_MAX_WAIT (IS_ENABLED(CONFIG_SYSTEM_CLOCK_SLOPPY_IDLE) \
26
+ ? K_TICKS_FOREVER : INT_MAX)
27
+
25
28
/**
26
29
* @brief System Clock APIs
27
30
* @defgroup clock_apis System Clock APIs
Original file line number Diff line number Diff line change @@ -22,9 +22,6 @@ static sys_dlist_t timeout_list = SYS_DLIST_STATIC_INIT(&timeout_list);
22
22
*/
23
23
static struct k_spinlock timeout_lock ;
24
24
25
- #define MAX_WAIT (IS_ENABLED(CONFIG_SYSTEM_CLOCK_SLOPPY_IDLE) \
26
- ? K_TICKS_FOREVER : INT_MAX)
27
-
28
25
/* Ticks left to process in the currently-executing sys_clock_announce() */
29
26
static int announce_remaining ;
30
27
@@ -91,7 +88,7 @@ static int32_t next_timeout(int32_t ticks_elapsed)
91
88
92
89
if ((to == NULL ) ||
93
90
((int64_t )(to -> dticks - ticks_elapsed ) > (int64_t )INT_MAX )) {
94
- ret = MAX_WAIT ;
91
+ ret = SYS_CLOCK_MAX_WAIT ;
95
92
} else {
96
93
ret = MAX (0 , to -> dticks - ticks_elapsed );
97
94
}
You can’t perform that action at this time.
0 commit comments