Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp10866ybl; Mon, 12 Aug 2019 10:50:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqz87YDUAwI8/WXWrdsf0F9HYbwsJ6QfTBWCZSFOF96+2OrF7nnlBWOoxF/m0dxW8hlYHRix X-Received: by 2002:a17:90a:246f:: with SMTP id h102mr397736pje.125.1565632231375; Mon, 12 Aug 2019 10:50:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565632231; cv=none; d=google.com; s=arc-20160816; b=hcvpk/c96kb7UDIDyQ0ngRBT3psqQ3xD+ozsNfmYUer532NM1+u4GLFWmE1PV0ELwx HvH06+cu1zRIS6lkB9MgqHzXenR4Js9Zztbp6UyMBimfhq3Zg9vg+7ZYH4Ur2S+bipiY yl1It1W9V2/OhDPz19edYdHdrLrtixx0ewkqeKcoT+xffdsgrx61CVaJy+8plOwAgfyj f7Doe204X9pT0B2YoYUOByMKy2oBLNnJEa9Vkh/1geU/xp3Wg/AeTKrbOyJ7sv8Iz8Hz JmRRg5wkSVQ8sEkgoIeylyF0frvoScjtLruRw1mmuHxc0ovbsmNXQE/2B+eGJreMkeSi YjGA== 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=J9yW/DBiZWOa6uTZ5uuY6ojQSena5FD+kVCv6Msp+FE=; b=MCAwCicdNvZpwcpEctIDyWL/nmcIB6H7lp6W1I1AfByDUpkD1QwH3DGGr+eTTmKhBA rpenoS855xurCtKUTk2t+QGOO60gyMBxs5L143454Ef6RHBG5rfW+NWCer7hVDvAE9j2 UfE666349aupOChpLnXlPsHMJih2KvELj+VSNNTYH7mxUxC8WWlP+IRb5Ka+W8mSM/F2 ZC1n+HP+/GuyYM8bTPdTv5U6mmJ03sWfmp51av8ZKgwLLHX5VXXSj66oTeeNvR5ul3g/ yeqsJ1YVCciN0ZNJXxATZo9OLdbmfMIi1Hi1w5K3tD6mDjMI4juxnnZhE9Nqxzp2NrJk 5WlA== 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 f8si14894261pgb.566.2019.08.12.10.50.15; Mon, 12 Aug 2019 10:50:31 -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 S1726479AbfHLRtB (ORCPT + 99 others); Mon, 12 Aug 2019 13:49:01 -0400 Received: from foss.arm.com ([217.140.110.172]:53596 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbfHLRtA (ORCPT ); Mon, 12 Aug 2019 13:49:00 -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 CE68F15AB; Mon, 12 Aug 2019 10:40:06 -0700 (PDT) Received: from [0.0.0.0] (e107985-lin.cambridge.arm.com [10.1.194.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E6BE33F706; Mon, 12 Aug 2019 10:40:04 -0700 (PDT) Subject: Re: [PATCH 01/14] sched: introduce task_se_h_load helper To: Rik van Riel , linux-kernel@vger.kernel.org Cc: kernel-team@fb.com, pjt@google.com, peterz@infradead.org, mingo@redhat.com, morten.rasmussen@arm.com, tglx@linutronix.de, mgorman@techsingularity.net, vincent.guittot@linaro.org, Josef Bacik References: <20190722173348.9241-1-riel@surriel.com> <20190722173348.9241-2-riel@surriel.com> From: Dietmar Eggemann Message-ID: Date: Mon, 12 Aug 2019 19:40:03 +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: <20190722173348.9241-2-riel@surriel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/22/19 7:33 PM, Rik van Riel wrote: > Sometimes the hierarchical load of a sched_entity needs to be calculated. > Rename task_h_load to task_se_h_load, and directly pass a sched_entity to > that function. > > Move the function declaration up above where it will be used later. > > No functional changes. > > Signed-off-by: Rik van Riel > Reviewed-by: Josef Bacik [...] > /* Give new sched_entity start runnable values to heavy its load in infant time */ > @@ -1668,7 +1668,7 @@ static void task_numa_compare(struct task_numa_env *env, > /* > * In the overloaded case, try and keep the load balanced. > */ > - load = task_h_load(env->p) - task_h_load(cur); > + load = task_se_h_load(env->p->se) - task_se_h_load(cur->se); Shouldn't this be: load = task_se_h_load(&env->p->se) - task_se_h_load(&cur->se); > if (!load) > goto assign; > > @@ -1706,7 +1706,7 @@ static void task_numa_find_cpu(struct task_numa_env *env, > bool maymove = false; > int cpu; > > - load = task_h_load(env->p); > + load = task_se_h_load(env->p->se); load = task_se_h_load(&env->p->se); [...]