better name
This commit is contained in:
parent
4de0d629d1
commit
bdf278bfe5
|
@ -16,7 +16,7 @@
|
|||
#include "efitime.h"
|
||||
#include "efilib2.h"
|
||||
|
||||
int maxHowFarOff = 0;
|
||||
uint32_t maxSchedulingPrecisionLoss = 0;
|
||||
|
||||
scheduling_s::scheduling_s() {
|
||||
callback = NULL;
|
||||
|
@ -165,8 +165,8 @@ int EventQueue::executeAll(efitime_t now) {
|
|||
efiAssert(current->callback != NULL, "callback==null2", 0);
|
||||
uint32_t before = GET_TIMESTAMP();
|
||||
current->isScheduled = false;
|
||||
int howFarOff = now - current->momentX;
|
||||
maxHowFarOff = maxI(maxHowFarOff, howFarOff);
|
||||
uint32_t howFarOff = now - current->momentX;
|
||||
maxSchedulingPrecisionLoss = maxI(maxSchedulingPrecisionLoss, howFarOff);
|
||||
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
|
||||
printf("execute current=%d param=%d\r\n", (long)current, (long)current->param);
|
||||
#endif
|
||||
|
|
|
@ -396,7 +396,7 @@ extern uint32_t maxEventCallbackDuration;
|
|||
extern uint32_t maxPrecisionCallbackDuration;
|
||||
#endif /* EFI_PROD_CODE */
|
||||
|
||||
extern int maxHowFarOff;
|
||||
extern uint32_t maxSchedulingPrecisionLoss;
|
||||
extern uint32_t *cyccnt;
|
||||
|
||||
extern int vvtEventRiseCounter;
|
||||
|
@ -407,6 +407,8 @@ void resetMaxValues() {
|
|||
maxEventCallbackDuration = triggerMaxDuration = 0;
|
||||
#endif /* EFI_PROD_CODE || EFI_SIMULATOR */
|
||||
|
||||
maxSchedulingPrecisionLoss = 0;
|
||||
|
||||
#if EFI_CLOCK_LOCKS || defined(__DOXYGEN__)
|
||||
maxLockedDuration = 0;
|
||||
#endif /* EFI_CLOCK_LOCKS */
|
||||
|
@ -488,8 +490,7 @@ void triggerInfo(void) {
|
|||
scheduleMsg(logger, "primary logic input: %s", hwPortname(boardConfiguration->logicAnalyzerPins[0]));
|
||||
scheduleMsg(logger, "secondary logic input: %s", hwPortname(boardConfiguration->logicAnalyzerPins[1]));
|
||||
|
||||
scheduleMsg(logger, "zeroTestTime=%d maxHowFarOff=%d", engine->m.zeroTestTime, maxHowFarOff);
|
||||
maxHowFarOff = 0;
|
||||
scheduleMsg(logger, "zeroTestTime=%d maxSchedulingPrecisionLoss=%d", engine->m.zeroTestTime, maxSchedulingPrecisionLoss);
|
||||
|
||||
scheduleMsg(logger, "advanceLookupTime=%d now=%d fuelCalcTime=%d",
|
||||
engine->m.advanceLookupTime, *cyccnt,
|
||||
|
|
Loading…
Reference in New Issue