Skip to content

Conversation

@sylvioalves
Copy link
Contributor

@sylvioalves sylvioalves commented Jan 9, 2026

The k_timer API requires CONFIG_SYS_CLOCK_EXISTS to be enabled, as timer.c is only compiled when this config is set. Guard the timer-based k_sleep() implementation and fall back to the previous busy-wait approach when no system clock exists.

Fix a regression caused by #101192

The k_timer API requires CONFIG_SYS_CLOCK_EXISTS to be enabled,
as timer.c is only compiled when this config is set. Guard the
timer-based k_sleep() implementation and fall back to the previous
busy-wait approach when no system clock exists.

Signed-off-by: Sylvio Alves <[email protected]>
@sylvioalves sylvioalves force-pushed the bugfix/nothread-timer branch from 9eb5569 to 60b7060 Compare January 9, 2026 14:56
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 9, 2026

Copy link
Contributor

@wmrsouza wmrsouza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants