Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/58955 )
Change subject: lib/hardwaremain: Run timers more frequently ......................................................................
Patch Set 2:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/58955/comment/571e0ddf_fc6e579e PS2, Line 14: see SPI transactions progress faster
Because we poll the SPI DMA controller more often to see if it's completed the transaction. […]
Basically, `bs_run_timers(0)` calls `timers_run()` once, which checks if the timer queue's first element (the one with the earliest deadline) has expired. If so, its callback is executed. This change calls `bs_run_timers(0)` in more places, so that expired elements in the timer queue can be processed sooner and more often.
This would only speed up the boot process if the delays before expired timer queue elements get processed are part of the critical path (the longest sequence of dependent tasks that need to be completed).