Raul Rangel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/58955 )
Change subject: lib/hardwaremain: Run timers more frequently ......................................................................
lib/hardwaremain: Run timers more frequently
This change makes it so the timers run after each boot state callback, and after each boot state. This gives coop threads the opportunity to run more frequently and predictably.
BUG=b:179699789 TEST=Boot guybrush to OS, see SPI transactions progress faster.
Signed-off-by: Raul E Rangel rrangel@chromium.org Change-Id: I9508e7777d52fe934cc09d486abc0dab5cf7dad8 --- M src/lib/hardwaremain.c 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/58955/1
diff --git a/src/lib/hardwaremain.c b/src/lib/hardwaremain.c index fe8e53f..28c2b82 100644 --- a/src/lib/hardwaremain.c +++ b/src/lib/hardwaremain.c @@ -290,6 +290,9 @@ mono_time_diff_microseconds(&mt_start, &mt_stop) / USECS_PER_MSEC); } + + bs_run_timers(0); + continue; }
@@ -355,6 +358,8 @@
bs_sample_time(state);
+ bs_run_timers(0); + bs_call_callbacks(state, current_phase.seq);
if (CONFIG(DEBUG_BOOT_STATE))