sched: Improve the scheduler

There is a redundant check taking place in set_task_cpu hook. The cpu
will never be negative from core kernel side, so remove it.

Change-Id: I6d8ab62573f401d6aaeda9c5ddb1183c69e8c7d6
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
This commit is contained in:
Shaleen Agrawal 2021-05-06 14:38:44 -07:00 committed by Rishabh Bhatnagar
parent a822c7ebe1
commit 619670b06a

View File

@ -3753,8 +3753,6 @@ static void android_rvh_set_task_cpu(void *unused, struct task_struct *p, unsign
{
if (unlikely(walt_disabled))
return;
if (new_cpu < 0)
return;
fixup_busy_time(p, (int) new_cpu);
}