Skip to content

Commit ccfe646

Browse files
M-Moawadfabiobaltieri
authored andcommitted
kernel: events: add conditional guards for timeout operations
Add conditional compilation guards around timeout operations in kernel/events.c to ensure compatibility with timer-less configurations. Signed-off-by: Mohamed Moawad <[email protected]>
1 parent 9380f20 commit ccfe646

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/events.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ static int event_walk_op(struct k_thread *thread, void *data)
136136
* have been processed.
137137
*/
138138
thread->no_wake_on_timeout = true;
139+
#ifdef CONFIG_SYS_CLOCK_EXISTS
139140
z_abort_timeout(&thread->base.timeout);
141+
#endif /* CONFIG_SYS_CLOCK_EXISTS */
140142
}
141143

142144
return 0;

0 commit comments

Comments
 (0)