Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp552856ybn; Wed, 2 Oct 2019 02:23:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLm8UArS5ltU5+TOXR2BfkgP6KSXuE6Jtdec/MtLoVe2T4jebL17de9P8T4LbCdyTVJ3iK X-Received: by 2002:a05:6402:1a52:: with SMTP id bf18mr2636183edb.67.1570008221523; Wed, 02 Oct 2019 02:23:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570008221; cv=none; d=google.com; s=arc-20160816; b=tQ+ua5Li2k7i/usK2Q0oRypAhuG3D5ViDxMedHSyCtkdUfDiD2G7din3awYRsSl4mw y6/izg5eupqK52dYrVQMakhz0VpJZpfyj2KAG1Y+0KN1RdI2NVtg3aa610EwsRXYUbmT 5zojB4xfaTvbdHS72PvM50BzUPG8U53SngWs2FLi9B70OUCotR6263IlHFNrOIEswvQ9 U8O5Cd+JuCuexTTT/+VJ1D4SevG8nWNYzL8p0583MRLhsa8n/XwjbSEjxc7v91YhE8k+ aRux/KqOTrXFzGMatp8WFES8pejVVov7ZHza7zs69U29mtUENjoE5sA3VQCXrkStZIlI nX5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=iqDNfdjvRGAQP1BLOGV1xildBiuDC2Y91pC30qrW5QY=; b=bkI/rJsMHSRo85HaJ2pv5AYtf1shLvSWa5GT2nWtD9Uui7zlA/31H2yqtjX1eB56/J ReQJAb2Yvyg90LhJd3LIxh+ZIQUFu6sJjVD6Yob0YrnZdYG5ZC7tWZhi7H0uwOXqriz4 cCHZpX0z7CsERhTtB49eWuUj4Wsa5ABH844mxMeYPBlu5Ki1SPStMkXJlHjLDA5ooo4R zH1r24uGgcwzGYFYyIXlz/q0QPCUV/OT9e7MAuBfAFIRysKbB5ONjg7NJ8nBKX/nyzKV jzlol0V+yQg1kZtqjYkcYTwHBl88NgqUwdR0roVrIR3dskissfJthOLPZrvywD8Gpe4o DUJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oq3si10560599ejb.220.2019.10.02.02.23.16; Wed, 02 Oct 2019 02:23:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727366AbfJBJVj (ORCPT + 99 others); Wed, 2 Oct 2019 05:21:39 -0400 Received: from foss.arm.com ([217.140.110.172]:39678 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfJBJVj (ORCPT ); Wed, 2 Oct 2019 05:21:39 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AA7FA1570; Wed, 2 Oct 2019 02:21:38 -0700 (PDT) Received: from [192.168.0.9] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BB2F93F706; Wed, 2 Oct 2019 02:21:36 -0700 (PDT) Subject: Re: [PATCH v3 04/10] sched/fair: rework load_balance To: Vincent Guittot Cc: linux-kernel , Ingo Molnar , Peter Zijlstra , Phil Auld , Valentin Schneider , Srikar Dronamraju , Quentin Perret , Morten Rasmussen , Hillf Danton References: <1568878421-12301-1-git-send-email-vincent.guittot@linaro.org> <1568878421-12301-5-git-send-email-vincent.guittot@linaro.org> <9bfb3252-c268-8c0c-9c72-65f872e9c8b2@arm.com> <3dca46c5-c395-e2b3-a7e8-e9208ba741c8@arm.com> From: Dietmar Eggemann Message-ID: Date: Wed, 2 Oct 2019 11:21:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/10/2019 08:44, Vincent Guittot wrote: > On Tue, 1 Oct 2019 at 18:53, Dietmar Eggemann wrote: >> >> On 01/10/2019 10:14, Vincent Guittot wrote: >>> On Mon, 30 Sep 2019 at 18:24, Dietmar Eggemann wrote: >>>> >>>> Hi Vincent, >>>> >>>> On 19/09/2019 09:33, Vincent Guittot wrote: >> >> [...] >> >>>>> @@ -7347,7 +7362,7 @@ static int detach_tasks(struct lb_env *env) >>>>> { >>>>> struct list_head *tasks = &env->src_rq->cfs_tasks; >>>>> struct task_struct *p; >>>>> - unsigned long load; >>>>> + unsigned long util, load; >>>> >>>> Minor: Order by length or reduce scope to while loop ? >>> >>> I don't get your point here >> >> Nothing dramatic here! Just >> >> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >> index d0c3aa1dc290..a08f342ead89 100644 >> --- a/kernel/sched/fair.c >> +++ b/kernel/sched/fair.c >> @@ -7333,8 +7333,8 @@ static const unsigned int sched_nr_migrate_break = 32; >> static int detach_tasks(struct lb_env *env) >> { >> struct list_head *tasks = &env->src_rq->cfs_tasks; >> - struct task_struct *p; >> unsigned long load, util; >> + struct task_struct *p; > > hmm... I still don't get this. > We usually gather pointers instead of interleaving them with other varaiables I thought we should always order local variable declarations from longest to shortest line but can't find this rule in coding-style.rst either. [...]