Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9f96742a authored by Yao Dongdong's avatar Yao Dongdong Committed by Ingo Molnar
Browse files

sched: Check if we got a shallowest_idle_cpu before searching for least_loaded_cpu



Idle cpu is idler than non-idle cpu, so we needn't search for least_loaded_cpu
after we have found an idle cpu.

Signed-off-by: default avatarYao Dongdong <yaodongdong@huawei.com>
Reviewed-by: default avatarSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1414469286-6023-1-git-send-email-yaodongdong@huawei.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 67dfa1b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment