From ae38b8bf5eb8baed79b70974fb93705db6495807 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sun, 10 Apr 2022 16:51:42 -0700 Subject: [PATCH] hle: kernel: k_spin_lock: Remove unused ThreadPause. --- src/core/hle/kernel/k_spin_lock.cpp | 28 ---------------------------- 1 file changed, 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 @@ #include "core/hle/kernel/k_spin_lock.h" -#if _MSC_VER -#include -#if _M_AMD64 -#define __x86_64__ 1 -#endif -#if _M_ARM64 -#define __aarch64__ 1 -#endif -#else -#if __x86_64__ -#include -#endif -#endif - -namespace { - -void ThreadPause() { -#if __x86_64__ - _mm_pause(); -#elif __aarch64__ && _MSC_VER - __yield(); -#elif __aarch64__ - asm("yield"); -#endif -} - -} // namespace - namespace Kernel { void KSpinLock::Lock() {