sched/fair: tiny clearup of -1
PATCH 1/1 sched/fair: tiny clearup of -1
From: zhang jun <[email protected]>
find_idlest_cpu don't return -1, so clearup it.
Signed-off-by zhang jun <[email protected]>
Signed-off-by Chuansheng Liu <[email protected]>
Signed-off-by Changcheng Liu <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Hillf Danton <[email protected]>
Cc Vincent Guittot <[email protected]>
--- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
@@ -4596,7 +4596,7 @@ select_task_rq_fair(struct task_struct *p, int prev_cpu, int sd_flag, int wake_f } new_cpu =find_idlest_cpu (group, p, cpu); -if (new_cpu ==-1 || new_cpu == cpu) { +if (new_cpu == cpu) {/* Now try balancing at a lower domain level of cpu */ sd = sd->child;continue ;
Signature · 1 line
1.7.9.5
Quoted 8 lines · On Fri, Dec 05, 2014 at 02:02:45PM +0800, [email protected] wrote:
From: zhang jun <[email protected]>
find_idlest_cpudon't return -1, so clearup it.Signed-off-by zhang jun <[email protected]>Signed-off-by Chuansheng Liu <[email protected]>Signed-off-by Changcheng Liu <[email protected]>Cc Greg Kroah-Hartman <[email protected]>
Why me? I don't care about this file...
Peter Zijlstra
maintainerQuoted 3 lines · On Fri, Dec 05, 2014 at 02:02:45PM +0800, [email protected] wrote:
From: zhang jun <[email protected]>
find_idlest_cpudon't return -1, so clearup it.
'clean it up' perhaps?
Quoted 3 lines
Signed-off-by zhang jun <[email protected]>Signed-off-by Chuansheng Liu <[email protected]>Signed-off-by Changcheng Liu <[email protected]>
Invalid SoB chain.