summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-11-28 12:21:45 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-06-28 01:10:55 +0200
commit9cafb0d91266210dab2c72e484b493bceae1cb02 (patch)
treeb7a350271073804162c41254ff1889c8ec2a76bf /src/common
parentCore: add missing include. (diff)
downloadyuzu-9cafb0d91266210dab2c72e484b493bceae1cb02.tar
yuzu-9cafb0d91266210dab2c72e484b493bceae1cb02.tar.gz
yuzu-9cafb0d91266210dab2c72e484b493bceae1cb02.tar.bz2
yuzu-9cafb0d91266210dab2c72e484b493bceae1cb02.tar.lz
yuzu-9cafb0d91266210dab2c72e484b493bceae1cb02.tar.xz
yuzu-9cafb0d91266210dab2c72e484b493bceae1cb02.tar.zst
yuzu-9cafb0d91266210dab2c72e484b493bceae1cb02.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/thread.cpp3
-rw-r--r--src/common/x64/native_clock.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/thread.cpp b/src/common/thread.cpp
index 924f0df1b..919e33af9 100644
--- a/src/common/thread.cpp
+++ b/src/common/thread.cpp
@@ -62,8 +62,7 @@ void SetCurrentThreadPriority(ThreadPriority new_priority) {
void SetCurrentThreadPriority(ThreadPriority new_priority) {
pthread_t this_thread = pthread_self();
- const auto scheduling_type =
- new_priority != ThreadPriority::Critical ? SCHED_OTHER : SCHED_FIFO;
+ const auto scheduling_type = SCHED_OTHER;
s32 max_prio = sched_get_priority_max(scheduling_type);
s32 min_prio = sched_get_priority_min(scheduling_type);
u32 level = std::max(static_cast<u32>(new_priority) + 1, 4U);
diff --git a/src/common/x64/native_clock.cpp b/src/common/x64/native_clock.cpp
index 427a382cd..0b89f9ed2 100644
--- a/src/common/x64/native_clock.cpp
+++ b/src/common/x64/native_clock.cpp
@@ -5,6 +5,7 @@
#include <chrono>
#include <thread>
+#include "common/atomic_ops.h"
#include "common/uint128.h"
#include "common/x64/native_clock.h"