Re: [PATCH] sched:skip loop non-idle cpus after find an idle cpu while find_idlest_cpu

2014-10-27 Thread Srikar Dronamraju
* Yao Dongdong [2014-10-27 16:58:05]: > On 2014/10/27 16:04, Srikar Dronamraju wrote: > > * Yao Dongdong [2014-10-27 11:13:17]: > > > >> Idle cpu is idler than non-idle cpu, so we needn't loop non-idle cpus > >> after find an idle cpu. > >> > > While this check looks good, > > I dont see how

Re: [PATCH] sched:skip loop non-idle cpus after find an idle cpu while find_idlest_cpu

2014-10-27 Thread Yao Dongdong
On 2014/10/27 16:04, Srikar Dronamraju wrote: > * Yao Dongdong [2014-10-27 11:13:17]: > >> Idle cpu is idler than non-idle cpu, so we needn't loop non-idle cpus after >> find an idle cpu. >> > While this check looks good, > I dont see how we are avoiding a loop? > > Are you suggesting that we

Re: [PATCH] sched:skip loop non-idle cpus after find an idle cpu while find_idlest_cpu

2014-10-27 Thread Srikar Dronamraju
* Yao Dongdong [2014-10-27 11:13:17]: > Idle cpu is idler than non-idle cpu, so we needn't loop non-idle cpus after > find an idle cpu. > While this check looks good, I dont see how we are avoiding a loop? Are you suggesting that we break of the for loop once we set shallowest_idle_cpu? --

Re: [PATCH] sched:skip loop non-idle cpus after find an idle cpu while find_idlest_cpu

2014-10-27 Thread Srikar Dronamraju
* Yao Dongdong yaodongd...@huawei.com [2014-10-27 11:13:17]: Idle cpu is idler than non-idle cpu, so we needn't loop non-idle cpus after find an idle cpu. While this check looks good, I dont see how we are avoiding a loop? Are you suggesting that we break of the for loop once we set

Re: [PATCH] sched:skip loop non-idle cpus after find an idle cpu while find_idlest_cpu

2014-10-27 Thread Yao Dongdong
On 2014/10/27 16:04, Srikar Dronamraju wrote: * Yao Dongdong yaodongd...@huawei.com [2014-10-27 11:13:17]: Idle cpu is idler than non-idle cpu, so we needn't loop non-idle cpus after find an idle cpu. While this check looks good, I dont see how we are avoiding a loop? Are you suggesting

Re: [PATCH] sched:skip loop non-idle cpus after find an idle cpu while find_idlest_cpu

2014-10-27 Thread Srikar Dronamraju
* Yao Dongdong yaodongd...@huawei.com [2014-10-27 16:58:05]: On 2014/10/27 16:04, Srikar Dronamraju wrote: * Yao Dongdong yaodongd...@huawei.com [2014-10-27 11:13:17]: Idle cpu is idler than non-idle cpu, so we needn't loop non-idle cpus after find an idle cpu. While this check

[PATCH] sched:skip loop non-idle cpus after find an idle cpu while find_idlest_cpu

2014-10-26 Thread Yao Dongdong
Idle cpu is idler than non-idle cpu, so we needn't loop non-idle cpus after find an idle cpu. Signed-off-by:yaodongd...@huawei.com --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 0b069bf..2445a23 100644

[PATCH] sched:skip loop non-idle cpus after find an idle cpu while find_idlest_cpu

2014-10-26 Thread Yao Dongdong
Idle cpu is idler than non-idle cpu, so we needn't loop non-idle cpus after find an idle cpu. Signed-off-by:yaodongd...@huawei.com --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 0b069bf..2445a23 100644