From 2677cf68d4f176c09d58b25baa502572feb574e4 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 24 Jan 2019 12:09:41 -0800 Subject: [PATCH] pm/0.8.3: remove memory profile adjustment entirely --- stratosphere/pm/source/pm_resource_limits.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stratosphere/pm/source/pm_resource_limits.cpp b/stratosphere/pm/source/pm_resource_limits.cpp index 99763cbf4..67a4aa773 100644 --- a/stratosphere/pm/source/pm_resource_limits.cpp +++ b/stratosphere/pm/source/pm_resource_limits.cpp @@ -183,9 +183,7 @@ void ResourceLimitUtils::InitializeLimits() { for (unsigned int i = 0; i < 6; i++) { g_memory_resource_limits[i][0] += ATMOSPHERE_EXTRA_SYSTEM_MEMORY_FOR_SYSMODULES; /* On < 4.0.0, taking from application instead of applet fixes a rare hang on boot. */ - if (kernelAbove600()) { - g_memory_resource_limits[i][1] -= ATMOSPHERE_EXTRA_SYSTEM_MEMORY_FOR_SYSMODULES; - } else if (kernelAbove400()) { + if (kernelAbove400()) { g_memory_resource_limits[i][2] -= ATMOSPHERE_EXTRA_SYSTEM_MEMORY_FOR_SYSMODULES; } else { g_memory_resource_limits[i][1] -= ATMOSPHERE_EXTRA_SYSTEM_MEMORY_FOR_SYSMODULES;