summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-05-29 23:37:37 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:36:21 +0200
commit7fd7d05838b88e9dd63a7329e29ea355669a5f18 (patch)
tree083e938c7a3a82be30050fb990fe2d62c4aeee57 /src
parentServices/NvFlinger: Do vSync in a sepparate thread on Multicore. (diff)
downloadyuzu-7fd7d05838b88e9dd63a7329e29ea355669a5f18.tar
yuzu-7fd7d05838b88e9dd63a7329e29ea355669a5f18.tar.gz
yuzu-7fd7d05838b88e9dd63a7329e29ea355669a5f18.tar.bz2
yuzu-7fd7d05838b88e9dd63a7329e29ea355669a5f18.tar.lz
yuzu-7fd7d05838b88e9dd63a7329e29ea355669a5f18.tar.xz
yuzu-7fd7d05838b88e9dd63a7329e29ea355669a5f18.tar.zst
yuzu-7fd7d05838b88e9dd63a7329e29ea355669a5f18.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/wall_clock.cpp7
-rw-r--r--src/core/hle/kernel/svc.cpp4
2 files changed, 3 insertions, 8 deletions
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp
index a46db6bbf..3afbdb898 100644
--- a/src/common/wall_clock.cpp
+++ b/src/common/wall_clock.cpp
@@ -68,12 +68,7 @@ std::unique_ptr<WallClock> CreateBestMatchingClock(u32 emulated_cpu_frequency,
const auto& caps = GetCPUCaps();
u64 rtsc_frequency = 0;
if (caps.invariant_tsc) {
- if (caps.base_frequency != 0) {
- rtsc_frequency = static_cast<u64>(caps.base_frequency) * 1000000U;
- }
- if (rtsc_frequency == 0) {
- rtsc_frequency = EstimateRDTSCFrequency();
- }
+ rtsc_frequency = EstimateRDTSCFrequency();
}
if (rtsc_frequency == 0) {
return std::make_unique<StandardWallClock>(emulated_cpu_frequency,
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 781032cd1..013ae9e34 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -344,9 +344,9 @@ static ResultCode SendSyncRequest(Core::System& system, Handle handle) {
SchedulerLock lock(system.Kernel());
auto* sync_object = thread->GetHLESyncObject();
sync_object->RemoveWaitingThread(SharedFrom(thread));
-
- thread->InvokeHLECallback(SharedFrom(thread));
}
+
+ thread->InvokeHLECallback(SharedFrom(thread));
}
return thread->GetSignalingResult();