Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4841378ybi; Tue, 28 May 2019 03:27:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQDgL/RJ8GKc4/3G8nuQlqmY1kTxYvhTUqDUyy9F53HlOkqiv1AxMsjBhM8pRIhID1fjH5 X-Received: by 2002:aa7:9726:: with SMTP id k6mr80074359pfg.246.1559039254719; Tue, 28 May 2019 03:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559039254; cv=none; d=google.com; s=arc-20160816; b=qI+bQnVhJDhWkbteJa6jQ7j9id3hd1bJ9t12P6HALDYSECnYUrVEgq9t5McxxtFo6P 6MYweb6WIPfzJeBkkRrjaZ/bAK3ELm+aL7fQNFnpphdGmiSp9lmj1ZSePLPsuIGl6WhJ jD4UHa9UOfxBLx3se1CBClCzL6+n5vLiw70X03QfGGCU6YRhYyqrdMUKygW20dliU8Id oOrGyADeuEBMCDyX0G4tCIUljVZ5I1lEs8W4t/2i/w1fKf4ZDIcj2F+g9dyaK3bPzFoV XZnN8UZhPp0ipRicE+qsapdgK3oIU5jpsP2CcokCAw2qD6R7tK9mYcoF6NvWl+vOQBXq ES3w== 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=adrmzdDDgWWBo6SQ53i1uBOzoLj2a4rJ1lYVmwMZgSc=; b=xwjglA+777i24YGssak3x+7kJHmUM2aZUbUrfzH/9XFFBde6FecGoSouenqYwGr8U7 TVDDtKzWc3EbC2ktHFUqsl8GUefM6nC0hv7hYwZGoEqVjPFWZsoj+DvB4VW2n7qPeT// G784Lcso06pGBp+L94ATKvY1Evx5FXGWsTHSRQ2XpMDDRLh+VvGX+IMM21QXt0mc1md8 HyiWvxqhV8RemoRSf8MihLzaSgggriht7mxxK3eXHoqbAY3DapenVNvwnaNcqqUovI3T A7r32Y0uaTYQWslMg7Vm8yEw0c+3EwQQYc3Lcy8mFCatMgUYDglUp5RAYadKnImS/bxN hbjg== 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 1si15905334pli.25.2019.05.28.03.27.19; Tue, 28 May 2019 03:27:34 -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 S1726663AbfE1KY7 (ORCPT + 99 others); Tue, 28 May 2019 06:24:59 -0400 Received: from foss.arm.com ([217.140.101.70]:54328 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfE1KY7 (ORCPT ); Tue, 28 May 2019 06:24:59 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0A2CC341; Tue, 28 May 2019 03:24:59 -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 6EFAE3F59C; Tue, 28 May 2019 03:24:55 -0700 (PDT) Subject: Re: [PATCH 2/7] sched/fair: Replace source_load() & target_load() w/ weighted_cpuload() To: Hillf Danton Cc: Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Frederic Weisbecker , Rik van Riel , Vincent Guittot , Morten Rasmussen , Quentin Perret , Valentin Schneider , Patrick Bellasi , linux-kernel@vger.kernel.org References: <20190527062116.11512-1-dietmar.eggemann@arm.com> <20190527062116.11512-3-dietmar.eggemann@arm.com> From: Dietmar Eggemann Message-ID: <63ee8775-f159-e172-15f4-2ddf941870ee@arm.com> Date: Tue, 28 May 2019 12:24:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190527062116.11512-3-dietmar.eggemann@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed 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 5/28/19 6:42 AM, Hillf Danton wrote: > > On Mon, 27 May 2019 07:21:11 +0100 Dietmar Eggemann wrote: [...] >> @@ -5500,7 +5464,7 @@ wake_affine_weight(struct sched_domain *sd, struct task_struct *p, >> this_eff_load *= 100; >> this_eff_load *= capacity_of(prev_cpu); >> >> - prev_eff_load = source_load(prev_cpu, sd->wake_idx); >> + prev_eff_load = weighted_cpuload(cpu_rq(this_cpu)); > cpu_rq(prev_cpu) > > Seems we have no need to see this cpu's load more than once. Thanks for catching this! Will fix it in v2.