commit | b8188e54a421cdc08861ca06933efee3224d3816 | [log] [tgz] |
---|---|---|
author | Gerson Fernando Budke <gerson.budke@ossystems.com.br> | Mon Oct 16 20:15:31 2023 +0200 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed Jan 10 15:10:16 2024 +0100 |
tree | 191d2c9570493cda0bd8ed114ba0cb840262b8fb | |
parent | 273165c3bb9c8bc7af02350511cb94f4f64bb135 [diff] |
kernel: Implement k_sleep for Single Thread The current z_tick_sleep return directly when building kernel for Single Thread model. This reorganize the code to use k_busy_wait() to be time coherent since subsystems may depend on it. In the case of a K_FOREVER timeout is selected the Single Thread the implementation will invoke k_cpu_idle() and the system will wait for an interrupt saving power. Signed-off-by: Gerson Fernando Budke <gerson.budke@ossystems.com.br>