summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorPatrice Chotard <[email protected]>2026-07-06 18:06:09 +0200
committerTom Rini <[email protected]>2026-07-16 16:11:19 -0600
commit9c1b13b3fd271500cd8a61f86816d822e4852a90 (patch)
tree61ada6a448e497796028929820349b0c2fe5074b /scripts/const_structs.checkpatch
parent08af4faa0f0eac4622e52e699729bd157d6d806a (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 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions