mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
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:
parent
a822c7ebe1
commit
619670b06a
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user