diff options
| author | Patrice Chotard <[email protected]> | 2026-07-06 18:06:09 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-07-16 16:11:19 -0600 |
| commit | 9c1b13b3fd271500cd8a61f86816d822e4852a90 (patch) | |
| tree | 61ada6a448e497796028929820349b0c2fe5074b /configs/O2MNT_O2M113_defconfig | |
| parent | 08af4faa0f0eac4622e52e699729bd157d6d806a (diff) | |
cyclic: reduce get_timer_us() calls inside hlist_for_each_entry_safe()
On STM32MP157C-DK2, when using the "ums" command, in sleep_thread(),
ctrlc() is called every ~640ms which doesn't allows high reactivity when
user press CTRL+C in U-Boot console.
In sleep_thread() loop, ctrlc() is called every 200000 iterations.
But schedule is called on each loop iteration.
Optimize cyclic_run() in order to not call get_timer_us() on each entry.
This allow to save computation time :
_ before : ctrlc() is called every ~640ms
_ after : ctrlc() is called every ~230ms
Signed-off-by: Rasmus Villemoes <[email protected]>
Signed-off-by: Patrice Chotard <[email protected]>
Cc: Marek Vasut <[email protected]>
Diffstat (limited to 'configs/O2MNT_O2M113_defconfig')
0 files changed, 0 insertions, 0 deletions
