Skip to content

Commit

Permalink
Merged PR 4947: Continue PEI dispatch loop if there are any outstandi…
Browse files Browse the repository at this point in the history
…ng DelayDispatch registr...

Continue PEI dispatch loop if there are any outstanding DelayDispatch registrations
  • Loading branch information
joschock authored and kenlautner committed May 5, 2023
1 parent b19ebc9 commit b48ca5a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -2016,7 +2016,12 @@ PeiDispatcher (
// pass. If we did not dispatch a PEIM/FV there is no point in trying again
// as it will fail the next time too (nothing has changed).
//
} while (Private->PeimNeedingDispatch && Private->PeimDispatchOnThisPass);

// MS_CHANGE - continue dispatch loop if there are outstanding delay-
// dispatch registrations still running.
} while (
(Private->PeimNeedingDispatch && Private->PeimDispatchOnThisPass) ||
(Private->DelayedDispatchTable->Count > 0));

PERF_FUNCTION_END (); // MS_CHANGE
}
Expand Down

0 comments on commit b48ca5a

Please sign in to comment.