kernel: k_sleep bug in no multi-threading mode #81210
Labels
area: Kernel
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
Bug in
k_sleep
implementation for no multi-threading mode.Absolute value of timeout expiration was fed to the k_busy_wait() function instead of delta value. That caused bug like incrementing of sleep time in geometric progression (while actual function argument is constant) during program running.
Suggested solution
#80979
To Reproduce
hello_world
sample source with simple code:CONFIG_MULTITHREADING=n
flag inprj.conf
cd zephyr
west build -b qemu-riscv64 samples/hello_world
west build -t run
k_sleep
Expected behavior
Expected, that
k_sleep
will wait actual amount of time, specified in function argumentImpact
Programs start to sleep a lot of time, when compile for no multi-threading mode
Logs and console output
Output from qemu_riscv64:
Environment (please complete the following information):
Additional context
NA
The text was updated successfully, but these errors were encountered: