Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp852550ybi; Wed, 19 Jun 2019 08:56:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRPEzb5BHZIUjEGWGyKCdRQo0gBbfSBZTNdxkts/Xp2NbGVo8Hi+gxjBIrc5LuEDmHGPkr X-Received: by 2002:a17:902:e208:: with SMTP id ce8mr2355253plb.205.1560959790832; Wed, 19 Jun 2019 08:56:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560959790; cv=none; d=google.com; s=arc-20160816; b=Q57lJF0NO8Hrdasx2t8Sz3VVjyd/syCn6nDgiNa8B+zvRMXln4babCM8CsFO8ro03N 0zl1DB+DJH+vudnvIzpUTLJrWxqPDEhnrp5U7fVW9Brwyj+BTKrzuNNK/3DqAr9pvIsA lsNuGJPkGDv5vgAu7SS56aDxi0mub7qxDMBpUYVkjGim1YRJcFljElXJS4d4Yr7AzEhO MJeLmOEr+2xS7cvMC+iBSpDF81DvHLUBGpFXRQ5KUAoN9zhfbwJi8wfKBHfCHidHeise aVXJz5ijb01ImqYqYThY9W8jTEmMeJlsl2Yq1LDeqQMgL1xWS9NUc7iuVa1hpx5ZnqBC qv3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=5/hHPF12ZNn/DDAIHRzTYRCxM9A0tCIFiG6n/ROVnHI=; b=OIhOvaSJuXqitAYy5JDxOnCpt916qqCVuxUZDpM9hgjtk+cVjNW1rbpvRDe1PTHiNn AdzifmrFIaEtHmQHoiVJCcMClq2KjhgI6suZ2iZSMqoMvbBBUxoU9mz8gh6Jfc96kx51 aElvK7tbC0cyFeLVIV4PupR5CPLtYnGSiXG8LK26ZismZodrZNtRkSVzoU8Y9OrtRTp2 gIAIZDjiwo7XcUIXDHTdzpDriB7uPDvFD+89a2B1PFSkG+c1o77Ub00f2QATPInbWUyy SpqhkV/mHTcWw/+lH9zr7rlTY7JNqvr6ar99qlDitmWb4v1xiWrlIsU5gW/LyjXkezfz hvlg== 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 j3si11362703pfh.178.2019.06.19.08.56.15; Wed, 19 Jun 2019 08:56:30 -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 S1729659AbfFSPzS (ORCPT + 99 others); Wed, 19 Jun 2019 11:55:18 -0400 Received: from shelob.surriel.com ([96.67.55.147]:41988 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725899AbfFSPzS (ORCPT ); Wed, 19 Jun 2019 11:55:18 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hdcvX-0005mW-6q; Wed, 19 Jun 2019 11:55:11 -0400 Message-ID: Subject: Re: [PATCH 1/8] sched: introduce task_se_h_load helper From: Rik van Riel To: Dietmar Eggemann , peterz@infradead.org Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, kernel-team@fb.com, morten.rasmussen@arm.com, tglx@linutronix.de, dietmar.eggeman@arm.com, mgorman@techsingularity.com, vincent.guittot@linaro.org Date: Wed, 19 Jun 2019 11:55:10 -0400 In-Reply-To: <9e75dd03-23e5-8ab3-8f5c-789b2581b3a7@arm.com> References: <20190612193227.993-1-riel@surriel.com> <20190612193227.993-2-riel@surriel.com> <55d914d2-fba2-48c0-e7ff-3c7337c8cf8e@arm.com> <9e75dd03-23e5-8ab3-8f5c-789b2581b3a7@arm.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-Hns3IAshFzQkBUV3/YoC" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-Hns3IAshFzQkBUV3/YoC Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2019-06-19 at 17:18 +0200, Dietmar Eggemann wrote: > On 6/19/19 3:57 PM, Rik van Riel wrote: >=20 > > That would work, but task_h_load then dereferences > > task->se to get the se->avg.load_avg value. > >=20 > > Going back to task from the se, only to then get the > > se from the task seems a little unnecessary :) > >=20 > > Can you explain why you think task_h_load(task_of(se)) > > would be better? I think I may be overlooking something. >=20 > Ah, OK, I just wanted to avoid having task_se_h_load() and > task_h_load() > at the same time. You could replace the remaining calls to > task_h_load(p) with task_se_h_load(&p->se) in this case. >=20 > - task_load =3D task_h_load(p); > + task_load =3D task_se_h_load(&p->se); >=20 > Not that important though right now ... That I can do. I might as well do that while going through the rest of the series to merge in the bug fix that I have for the performance regression, and the fixes for compilation with other config options. Thank you for the suggestion. --=20 All Rights Reversed. --=-Hns3IAshFzQkBUV3/YoC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEKR73pCCtJ5Xj3yADznnekoTE3oMFAl0KWt4ACgkQznnekoTE 3oN1uQgAl8/y0j/qN7nIABc3VO2EBqzbnCCJol+xEM2LkXVEQ5LNGlChRdf3COwS QbOMesZhHu7Ugia8F3AqxVOUTottcEIOF9BIaf4/1v+WD4Jns6593XTr3gnd+Nhy 2/HL0+itu/1uKLls+BQiLZatz6eHGNAxgzOTeGZEytVhJgNrOgxudg45SnDVGIwI G2QbPbT8HHI/hDEZkH+CGs3oBML76o/Qf78p7Z3XGiIIG/g3v6gkmv6kXUvPkrF0 yt+KxBzYomF2zjSyLKkQi7IZH1IQJcXKzKVqMXHSbPAbjyIil0oTX+5FqWUy07Lm IYiLEGqZDllbBFfKii0gJKdzrKImQQ== =6KI8 -----END PGP SIGNATURE----- --=-Hns3IAshFzQkBUV3/YoC--