summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 5fac831ee..660e6f577 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -1227,10 +1227,10 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V
1227 1227
1228 auto* const current_process = Core::CurrentProcess(); 1228 auto* const current_process = Core::CurrentProcess();
1229 1229
1230 if (processor_id == THREADPROCESSORID_DEFAULT) { 1230 if (processor_id == THREADPROCESSORID_IDEAL) {
1231 // Set the target CPU to the one specified in the process' exheader. 1231 // Set the target CPU to the one specified by the process.
1232 processor_id = current_process->GetDefaultProcessorID(); 1232 processor_id = current_process->GetIdealCore();
1233 ASSERT(processor_id != THREADPROCESSORID_DEFAULT); 1233 ASSERT(processor_id != THREADPROCESSORID_IDEAL);
1234 } 1234 }
1235 1235
1236 switch (processor_id) { 1236 switch (processor_id) {
@@ -1639,13 +1639,13 @@ static ResultCode SetThreadCoreMask(Handle thread_handle, u32 core, u64 mask) {
1639 return ERR_INVALID_HANDLE; 1639 return ERR_INVALID_HANDLE;
1640 } 1640 }
1641 1641
1642 if (core == static_cast<u32>(THREADPROCESSORID_DEFAULT)) { 1642 if (core == static_cast<u32>(THREADPROCESSORID_IDEAL)) {
1643 const u8 default_processor_id = thread->GetOwnerProcess()->GetDefaultProcessorID(); 1643 const u8 ideal_cpu_core = thread->GetOwnerProcess()->GetIdealCore();
1644 1644
1645 ASSERT(default_processor_id != static_cast<u8>(THREADPROCESSORID_DEFAULT)); 1645 ASSERT(ideal_cpu_core != static_cast<u8>(THREADPROCESSORID_IDEAL));
1646 1646
1647 // Set the target CPU to the one specified in the process' exheader. 1647 // Set the target CPU to the ideal core specified by the process.
1648 core = default_processor_id; 1648 core = ideal_cpu_core;
1649 mask = 1ULL << core; 1649 mask = 1ULL << core;
1650 } 1650 }
1651 1651