summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar Fernando S2023-09-29 13:36:57 +0200
committerGravatar GitHub2023-09-29 13:36:57 +0200
commitd6b3e7f195dcf9a154f4e1ff84c6a1b46ad5bdfc (patch)
tree936eb95eb694f525ba7daaabc89404fc4a5ea557 /src/core/hle/kernel
parentMerge pull request #11622 from liamwhite/qcr-reg1 (diff)
parentReduce core timing mutex contention (diff)
downloadyuzu-d6b3e7f195dcf9a154f4e1ff84c6a1b46ad5bdfc.tar.gz
yuzu-d6b3e7f195dcf9a154f4e1ff84c6a1b46ad5bdfc.tar.xz
yuzu-d6b3e7f195dcf9a154f4e1ff84c6a1b46ad5bdfc.zip
Merge pull request #11546 from Kelebek1/core_timing_mutex
Reduce core timing mutex contention
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/k_hardware_timer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_hardware_timer.cpp b/src/core/hle/kernel/k_hardware_timer.cpp
index 4dcd53821..8e2e40307 100644
--- a/src/core/hle/kernel/k_hardware_timer.cpp
+++ b/src/core/hle/kernel/k_hardware_timer.cpp
@@ -35,7 +35,9 @@ void KHardwareTimer::DoTask() {
35 } 35 }
36 36
37 // Disable the timer interrupt while we handle this. 37 // Disable the timer interrupt while we handle this.
38 this->DisableInterrupt(); 38 // Not necessary due to core timing already having popped this event to call it.
39 // this->DisableInterrupt();
40 m_wakeup_time = std::numeric_limits<s64>::max();
39 41
40 if (const s64 next_time = this->DoInterruptTaskImpl(GetTick()); 42 if (const s64 next_time = this->DoInterruptTaskImpl(GetTick());
41 0 < next_time && next_time <= m_wakeup_time) { 43 0 < next_time && next_time <= m_wakeup_time) {