resurrect EFI_CLOCK_LOCKS (#4572)
* resurrect EFI_CLOCK_LOCKS * missing extern Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
parent
6e53b1b5a3
commit
86562332c4
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue