Repository navigation
Commit 7949aad
[nrf fromtree] arch: riscv: no_multithreading: CPU idle after return from main
So far, forever busy loop with interrupts disabled was executed when
CONFIG_MULTITHREADING=n and main() returned. Change it to forever
k_cpu_idle() which is better from power consumption perspective.
Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
(cherry picked from commit c7d12998426df8f57b3e9188fae1877bc9a889aa)1 parent 27954cb commit 7949aad
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| |||
0 commit comments