aboutsummaryrefslogtreecommitdiff
path: root/src/common/x64/cpu_wait.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-03-28 09:09:35 -0400
committerGitHub <noreply@github.com>2023-03-28 09:09:35 -0400
commit40efd2ab56c2296da4524085a133021f7731e67f (patch)
treea43b51a4056ad7664346a63f145c889da1f59d16 /src/common/x64/cpu_wait.h
parentfbbf532d42f5688533d31f7fe6f75526b4187e5c (diff)
parentcdc846677cfc7f7389d9b89e6bb924a02f6f1c3b (diff)
Merge pull request #9982 from Morph1984/tpause
x64: Make use of waitpkg instructions for power efficient sleeps
Diffstat (limited to 'src/common/x64/cpu_wait.h')
-rw-r--r--src/common/x64/cpu_wait.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/x64/cpu_wait.h b/src/common/x64/cpu_wait.h
new file mode 100644
index 000000000..99d3757a7
--- /dev/null
+++ b/src/common/x64/cpu_wait.h
@@ -0,0 +1,10 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+namespace Common::X64 {
+
+void MicroSleep();
+
+} // namespace Common::X64