summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2022-04-10 16:51:42 -0700
committerGravatar bunnei2022-04-11 21:13:40 -0700
commitae38b8bf5eb8baed79b70974fb93705db6495807 (patch)
treef4be3facdce073323c67d9159935c82507ab3eff /src
parenthle: kernel: Use std::mutex instead of spin locks for most kernel locking. (diff)
downloadyuzu-ae38b8bf5eb8baed79b70974fb93705db6495807.tar.gz
yuzu-ae38b8bf5eb8baed79b70974fb93705db6495807.tar.xz
yuzu-ae38b8bf5eb8baed79b70974fb93705db6495807.zip
hle: kernel: k_spin_lock: Remove unused ThreadPause.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/k_spin_lock.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/core/hle/kernel/k_spin_lock.cpp b/src/core/hle/kernel/k_spin_lock.cpp
index 4df2e5c1a..527ff0f9f 100644
--- a/src/core/hle/kernel/k_spin_lock.cpp
+++ b/src/core/hle/kernel/k_spin_lock.cpp
@@ -4,34 +4,6 @@
4 4
5#include "core/hle/kernel/k_spin_lock.h" 5#include "core/hle/kernel/k_spin_lock.h"
6 6
7#if _MSC_VER
8#include <intrin.h>
9#if _M_AMD64
10#define __x86_64__ 1
11#endif
12#if _M_ARM64
13#define __aarch64__ 1
14#endif
15#else
16#if __x86_64__
17#include <xmmintrin.h>
18#endif
19#endif
20
21namespace {
22
23void ThreadPause() {
24#if __x86_64__
25 _mm_pause();
26#elif __aarch64__ && _MSC_VER
27 __yield();
28#elif __aarch64__
29 asm("yield");
30#endif
31}
32
33} // namespace
34
35namespace Kernel { 7namespace Kernel {
36 8
37void KSpinLock::Lock() { 9void KSpinLock::Lock() {