Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753995AbaLDMKX (ORCPT ); Thu, 4 Dec 2014 07:10:23 -0500 Received: from mail-ob0-f173.google.com ([209.85.214.173]:33027 "EHLO mail-ob0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753619AbaLDMKW (ORCPT ); Thu, 4 Dec 2014 07:10:22 -0500 MIME-Version: 1.0 In-Reply-To: <009501d00fb2$e90c30f0$bb2492d0$@alibaba-inc.com> References: <007f01d00fa1$68bf6770$3a3e3650$@alibaba-inc.com> <27240C0AC20F114CBF8149A2696CBE4A01EEA337@SHSMSX101.ccr.corp.intel.com> <009501d00fb2$e90c30f0$bb2492d0$@alibaba-inc.com> From: Vincent Guittot Date: Thu, 4 Dec 2014 13:10:01 +0100 Message-ID: Subject: Re: [PATCH] sched/fair: fix select_task_rq_fair return -1 To: Hillf Danton Cc: "Liu, Chuansheng" , "Zhang, Jun" , Ingo Molnar , Peter Zijlstra , linux-kernel , "Liu, Changcheng" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4 December 2014 at 12:10, Hillf Danton wrote: >> >> 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. yes indeed > >> 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 */ >> > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/