auto-sync
This commit is contained in:
parent
2cbe75fc74
commit
12b47f1f3c
|
@ -16,6 +16,8 @@
|
|||
#include "efitime.h"
|
||||
#include "efilib2.h"
|
||||
|
||||
int maxHowFarOff = 0;
|
||||
|
||||
scheduling_s::scheduling_s() {
|
||||
callback = NULL;
|
||||
next = NULL;
|
||||
|
@ -149,6 +151,8 @@ int EventQueue::executeAll(uint64_t now) {
|
|||
{
|
||||
uint32_t before = GET_TIMESTAMP();
|
||||
current->isScheduled = false;
|
||||
int howFarOff = now - current->momentX;
|
||||
maxHowFarOff = maxI(maxHowFarOff, howFarOff);
|
||||
current->callback(current->param);
|
||||
// even with overflow it's safe to subtract here
|
||||
lastEventQueueTime = GET_TIMESTAMP() - before;
|
||||
|
|
|
@ -229,6 +229,8 @@ extern uint32_t maxEventQueueTime;
|
|||
extern uint32_t hipLastExecutionCount;
|
||||
extern uint32_t hwSetTimerTime;
|
||||
|
||||
extern int maxHowFarOff;
|
||||
|
||||
void triggerInfo(Engine *engine) {
|
||||
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)
|
||||
|
||||
|
@ -289,7 +291,7 @@ void triggerInfo(Engine *engine) {
|
|||
scheduleMsg(logger, "primary logic input: %s", hwPortname(boardConfiguration->logicAnalyzerPins[0]));
|
||||
scheduleMsg(logger, "secondary logic input: %s", hwPortname(boardConfiguration->logicAnalyzerPins[1]));
|
||||
|
||||
scheduleMsg(logger, "zeroTestTime=%d", engine->m.zeroTestTime);
|
||||
scheduleMsg(logger, "zeroTestTime=%d maxHowFarOff=%d", engine->m.zeroTestTime, maxHowFarOff);
|
||||
|
||||
scheduleMsg(logger, "advanceLookupTime=%d", engine->m.advanceTime);
|
||||
|
||||
|
|
Loading…
Reference in New Issue