lkml.org 
[lkml]   [2014]   [Dec]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] sched/fair: fix select_task_rq_fair return -1
Date
> 
> The change below will give a similar behavior than 3.18 for 3.14 and
> we still match the condition if (new_cpu == -1 || new_cpu == cpu) in
>
And -1 is no longer needed.

> order to go in the child level
>
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -4151,7 +4151,7 @@ static int
> find_idlest_cpu(struct sched_group *group, struct task_struct *p, int this_cpu)
> {
> unsigned long load, min_load = ULONG_MAX;
> - int idlest = -1;
> + int idlest = this_cpu;
> int i;
>
> /* Traverse only the allowed CPUs */
>



\
 
 \ /
  Last update: 2014-12-04 12:41    [W:0.065 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site