diff options
| author | 2022-04-10 16:51:42 -0700 | |
|---|---|---|
| committer | 2022-04-11 21:13:40 -0700 | |
| commit | ae38b8bf5eb8baed79b70974fb93705db6495807 (patch) | |
| tree | f4be3facdce073323c67d9159935c82507ab3eff /src | |
| parent | hle: kernel: Use std::mutex instead of spin locks for most kernel locking. (diff) | |
| download | yuzu-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.cpp | 28 |
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 | |||
| 21 | namespace { | ||
| 22 | |||
| 23 | void 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 | |||
| 35 | namespace Kernel { | 7 | namespace Kernel { |
| 36 | 8 | ||
| 37 | void KSpinLock::Lock() { | 9 | void KSpinLock::Lock() { |