resurrect EFI_CLOCK_LOCKS (#4572)

* resurrect EFI_CLOCK_LOCKS

* missing extern

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
Matthew Kennedy 2022-09-13 11:07:25 -07:00 committed by GitHub
parent 6e53b1b5a3
commit 86562332c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 9 deletions

View File

@ -60,6 +60,8 @@
#define EFI_ENABLE_ASSERTS TRUE
#endif /* EFI_ENABLE_ASSERTS */
#define EFI_CLOCK_LOCKS TRUE
//#define EFI_UART_ECHO_TEST_MODE TRUE
/**

View File

@ -302,8 +302,8 @@ uint16_t rpmAcceleration;dRPM;"RPM/s",1, 0, 0, 5, 0
uint16_t mostRecentTimeBetweenSparkEvents;;"", 1, 0, -10000, 10000, 3
uint16_t mostRecentTimeBetweenIgnitionEvents;;"", 1, 0, -10000, 10000, 3
uint16_t maxLockedDuration;;"", 1, 0, -10000, 10000, 3
uint16_t maxTriggerReentrant;;"", 1, 0, -10000, 10000, 3
uint16_t maxLockedDuration;;"us", 1, 0, 0, 65535, 0
uint8_t maxTriggerReentrant;;"", 1, 0, 0, 100, 0
uint16_t canWriteOk;;"", 1, 0, -10000, 10000, 3
uint16_t canWriteNotOk;;"", 1, 0, -10000, 10000, 3

View File

@ -804,7 +804,7 @@ void updateTunerStudioState() {
#endif /* EFI_CAN_SUPPORT */
#if EFI_CLOCK_LOCKS
tsOutputChannels->maxLockedDuration = maxLockedDuration;
tsOutputChannels->maxLockedDuration = NT2US(maxLockedDuration);
tsOutputChannels->maxTriggerReentrant = maxTriggerReentrant;
#endif /* EFI_CLOCK_LOCKS */

View File

@ -17,8 +17,8 @@ extern uint32_t hipLastExecutionCount;
extern uint32_t maxLockedDuration;
extern uint32_t maxEventCallbackDuration;
extern uint32_t triggerMaxDuration;
extern int perSecondIrqDuration;
extern int perSecondIrqCounter;
extern int maxTriggerReentrant;
#if EFI_PROD_CODE
extern uint32_t maxPrecisionCallbackDuration;
@ -47,10 +47,6 @@ void printRuntimeStats(void) {
#if EFI_CLOCK_LOCKS
efiPrintf("maxLockedDuration=%d / maxTriggerReentrant=%d", maxLockedDuration, maxTriggerReentrant);
efiPrintf("perSecondIrqDuration=%d ticks / perSecondIrqCounter=%d", perSecondIrqDuration, perSecondIrqCounter);
efiPrintf("IRQ CPU utilization %f%%", perSecondIrqDuration / (float)CORE_CLOCK * 100);
#endif /* EFI_CLOCK_LOCKS */
efiPrintf("maxEventCallbackDuration=%d", maxEventCallbackDuration);