summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/thread.cpp2
-rw-r--r--src/core/hle/kernel/thread.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp
index aeb20b24b..962530d2d 100644
--- a/src/core/hle/kernel/thread.cpp
+++ b/src/core/hle/kernel/thread.cpp
@@ -410,7 +410,7 @@ ResultCode Thread::SetCoreAndAffinityMask(s32 new_core, u64 new_affinity_mask) {
410 }; 410 };
411 411
412 const bool use_override = affinity_override_count != 0; 412 const bool use_override = affinity_override_count != 0;
413 if (new_core == THREADDONTCHANGE_IDEAL) { 413 if (new_core == THREADPROCESSORID_DONT_UPDATE) {
414 new_core = use_override ? ideal_core_override : ideal_core; 414 new_core = use_override ? ideal_core_override : ideal_core;
415 if ((new_affinity_mask & (1ULL << new_core)) == 0) { 415 if ((new_affinity_mask & (1ULL << new_core)) == 0) {
416 return ERR_INVALID_COMBINATION; 416 return ERR_INVALID_COMBINATION;
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 7ee437e17..c9870873d 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -35,9 +35,6 @@ enum ThreadProcessorId : s32 {
35 /// Run thread on the ideal core specified by the process. 35 /// Run thread on the ideal core specified by the process.
36 THREADPROCESSORID_IDEAL = -2, 36 THREADPROCESSORID_IDEAL = -2,
37 37
38 /// when setting Core and Affiny, keeps the ideal core intact
39 THREADDONTCHANGE_IDEAL = -3,
40
41 /// Indicates that the preferred processor ID shouldn't be updated in 38 /// Indicates that the preferred processor ID shouldn't be updated in
42 /// a core mask setting operation. 39 /// a core mask setting operation.
43 THREADPROCESSORID_DONT_UPDATE = -3, 40 THREADPROCESSORID_DONT_UPDATE = -3,