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 <moawad@synopsys.com>
This commit is contained in:
committed by
Fabio Baltieri
parent
9380f20b85
commit
ccfe64627e
@@ -136,7 +136,9 @@ static int event_walk_op(struct k_thread *thread, void *data)
|
||||
* have been processed.
|
||||
*/
|
||||
thread->no_wake_on_timeout = true;
|
||||
#ifdef CONFIG_SYS_CLOCK_EXISTS
|
||||
z_abort_timeout(&thread->base.timeout);
|
||||
#endif /* CONFIG_SYS_CLOCK_EXISTS */
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user