From da6c02068b21400bd727c4b4509aa935596fc95e Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 17 Apr 2019 01:31:03 +0200 Subject: [PATCH] pm: fix reslimit bug --- sysmodules/pm/source/reslimit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysmodules/pm/source/reslimit.c b/sysmodules/pm/source/reslimit.c index 0e3d0f9..9cc146e 100644 --- a/sysmodules/pm/source/reslimit.c +++ b/sysmodules/pm/source/reslimit.c @@ -312,15 +312,15 @@ void setAppCpuTimeLimitAndSchedModeFromDescriptor(u64 titleId, u16 descriptor) { /* Two main cases here: - - app has a non-0 cputime descriptor in exhdr: current core1 cputime reslimit, - and maximum, and scheduling mode are set to it. SetAppResourceLimit is *not* needed + - app has a non-0 cputime descriptor in exhdr: maximum core1 cputime reslimit and scheduling + mode are set according to it. Current reslimit is set to 0. SetAppResourceLimit *is* needed to use core1. - app has a 0 cputime descriptor: maximum is set to 80. Current reslimit is set to 0, and SetAppResourceLimit *is* needed to use core1, **EXCEPT** for an hardcoded set of titles. */ u8 cpuTime = (u8)descriptor; - assertSuccess(setAppCpuTimeLimit(cpuTime)); + assertSuccess(setAppCpuTimeLimit(0)); // remove preemption first. g_manager.cpuTimeBase = 0;