summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-19 18:54:06 +0100
committerLioncash <mathew1800@gmail.com>2018-11-20 00:16:39 +0100
commit5d46038c5cd91504b00b76660212a3a28b244f38 (patch)
tree01e29da6e94c76109225ae27ed92dbfe7973c22d /src/core/hle/kernel/svc.cpp
parentMerge pull request #1634 from DarkLordZach/better-hid-2 (diff)
downloadyuzu-5d46038c5cd91504b00b76660212a3a28b244f38.tar
yuzu-5d46038c5cd91504b00b76660212a3a28b244f38.tar.gz
yuzu-5d46038c5cd91504b00b76660212a3a28b244f38.tar.bz2
yuzu-5d46038c5cd91504b00b76660212a3a28b244f38.tar.lz
yuzu-5d46038c5cd91504b00b76660212a3a28b244f38.tar.xz
yuzu-5d46038c5cd91504b00b76660212a3a28b244f38.tar.zst
yuzu-5d46038c5cd91504b00b76660212a3a28b244f38.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/svc.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index 75dbfc31d..9904605cd 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -736,13 +736,6 @@ static ResultCode SetThreadPriority(Handle handle, u32 priority) {
const auto* const current_process = Core::CurrentProcess();
- // Note: The kernel uses the current process's resource limit instead of
- // the one from the thread owner's resource limit.
- const ResourceLimit& resource_limit = current_process->GetResourceLimit();
- if (resource_limit.GetMaxResourceValue(ResourceType::Priority) > priority) {
- return ERR_INVALID_THREAD_PRIORITY;
- }
-
SharedPtr<Thread> thread = current_process->GetHandleTable().Get<Thread>(handle);
if (!thread) {
return ERR_INVALID_HANDLE;
@@ -885,10 +878,6 @@ static ResultCode CreateThread(Handle* out_handle, VAddr entry_point, u64 arg, V
}
auto* const current_process = Core::CurrentProcess();
- const ResourceLimit& resource_limit = current_process->GetResourceLimit();
- if (resource_limit.GetMaxResourceValue(ResourceType::Priority) > priority) {
- return ERR_INVALID_THREAD_PRIORITY;
- }
if (processor_id == THREADPROCESSORID_DEFAULT) {
// Set the target CPU to the one specified in the process' exheader.