Merge pull request #11546 from Kelebek1/core_timing_mutex

Reduce core timing mutex contention
This commit is contained in:
Fernando S 2023-09-29 13:36:57 +02:00 committed by GitHub
commit d6b3e7f195
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 6 deletions

View file

@ -35,7 +35,9 @@ void KHardwareTimer::DoTask() {
}
// Disable the timer interrupt while we handle this.
this->DisableInterrupt();
// Not necessary due to core timing already having popped this event to call it.
// this->DisableInterrupt();
m_wakeup_time = std::numeric_limits<s64>::max();
if (const s64 next_time = this->DoInterruptTaskImpl(GetTick());
0 < next_time && next_time <= m_wakeup_time) {