Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1804884ybv; Fri, 21 Feb 2020 03:49:21 -0800 (PST) X-Google-Smtp-Source: APXvYqzAOipERD83C8xtkvhSKY/GIrbr3VS6fbH6X6KzXJrxQP00OgxZ/3WhC/NsriQb5YXhFSvR X-Received: by 2002:a05:6808:244:: with SMTP id m4mr1624964oie.125.1582285761047; Fri, 21 Feb 2020 03:49:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582285761; cv=none; d=google.com; s=arc-20160816; b=v4rbDcoFjCSz8TP/TPpz128nrJVkI7x1kEFGjzih3JvgjFGg1v17DDSgyoGb3pdnab rZgFsIGqUzgqNdaxQOYQhQgEIZKZl69H1ER4SIh0Vrlt1nofcRIRMW0YKXCTrJdsAktx zV+15rR7coyk8IGuDjDT81oHx+kus9RO4YFmQDVNio5Au+ZGVd+zC5K9J2oumgJhj4DD SrnlaJBvIKWgP9/1MQsQIPwfCqId7C4+JSZhwQ38wJhoYL29NFX6Wx6KhRvUOuOimXNs QhqJGBPlWNaDHNVrr0JO+nlgArTBMY/EY/S+AVH6hAtv7c/ucmGPnQyNJdTlwDBPIdjR XL1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=s+0DXDQC4PSdbGf9Pveh1mXtQ4AEBvLtlHWHBl3nZk4=; b=EhBDgsUBLf/9j0hXnwNWGRXqMRsJwlwsN++3Wkwv5a62jipZUA5SFIebFgtgqRDI0B OfmuVO7t8AjbHnHWKnVE4yyTQhiBuia1bYsnkw0ufwRZ3VfW51Ze6EAtRfuxcHtvF2M0 ENOdbhKUYOHtHdKiQ3HsajNQkxVPMBXVWgwhafF4zoD55ysPW5uK7j3j5SBWhhYiSvnA HM9/I2jK3wFOXcqTZj32kDmDi4bYLc52lZmmOgC76u+VgQt7IA+xx4M98KSdlxD2Vmo3 szcIjxpCjXDgiKI2thaSJvOgM9jqAH2dC8vIabwQ1DehHjlj7iaqq1ssxYqGdf8eMUIZ Iflg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cje4o0gr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si1308686otp.260.2020.02.21.03.49.09; Fri, 21 Feb 2020 03:49:21 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=cje4o0gr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728199AbgBULrw (ORCPT + 99 others); Fri, 21 Feb 2020 06:47:52 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:37934 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727161AbgBULrv (ORCPT ); Fri, 21 Feb 2020 06:47:51 -0500 Received: by mail-lf1-f67.google.com with SMTP id r14so1272978lfm.5 for ; Fri, 21 Feb 2020 03:47:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s+0DXDQC4PSdbGf9Pveh1mXtQ4AEBvLtlHWHBl3nZk4=; b=cje4o0gr9878CZnZBPlek0YbZ4348Bfnnrasdx4MzpEGFBGd04rCnExlhCNsdTm37p MoaYVf6B9PSnR0fB9iYxopLEyUOtH87COidRAzw300rdYoMHGEVsH/IwoA/4RwrY3SGn KtHkK8217BbNcftVxtNOkdvGaTCw7DtAT85IyMBHxTSQgBfPGcCFSIwdDz+ysp9WHFpl 4L57kOi43X0NBbEJ71fPNVwP3/tT2k7mEJBjFrrGAk4KRm417t7w0LZLRhXQHbHq/IHL fab7mjg69gzOJBNO/t45Fx6aVde2y3MHG9DARreBrousRWpsLxJ5UkcTH5PCIOFqLwX8 FErQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s+0DXDQC4PSdbGf9Pveh1mXtQ4AEBvLtlHWHBl3nZk4=; b=MBF01QNf8QZS6n3FPllcFqQffIcPTpQwBTnCQFu8KbfXMR2c1qy2HI+lK8rVV1wn+s pLdM9iqrkN5dZTeoZfaq/8LvAgcXdUCTK5QAj/TUdcxeM8r7ds/Si2djkDuQ56+iiSGo po0iHJWSqIVfee5rBGlV3eoXV4ddneni65dV2YLJ6FOr9VrGhOmXDAi+CI803376A5xH LSdHAj9V1UmlJ6vInt348KimVGYEtcf+GD7viQmqViuaNg2wK37kqWhPmaqx/cULiLha pu/elistQq5VIrijam4nWhBDAC8MyN4OQ+V0nNcyrDrnnWNqf90o1s5RiJtllbfg6Lhb W85w== X-Gm-Message-State: APjAAAU4NRHQ/P46jUQor3x7CGjx5/+rM1TfNmwM8oEJFfKutEvThU9h 3IVNMn0YjU9wVqoNrm283yKIC6dGN7O07GqRciGWlA== X-Received: by 2002:ac2:4add:: with SMTP id m29mr19649122lfp.190.1582285667764; Fri, 21 Feb 2020 03:47:47 -0800 (PST) MIME-Version: 1.0 References: <20200214152729.6059-5-vincent.guittot@linaro.org> <20200219125513.8953-1-vincent.guittot@linaro.org> In-Reply-To: From: Vincent Guittot Date: Fri, 21 Feb 2020 12:47:36 +0100 Message-ID: Subject: Re: [PATCH v3 4/5] sched/pelt: Add a new runnable average signal To: Dietmar Eggemann Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel , Phil Auld , Parth Shah , Valentin Schneider , Hillf Danton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Feb 2020 at 10:45, Dietmar Eggemann wrote: > > On 19/02/2020 13:55, Vincent Guittot wrote: > > [...] > > > +static inline long se_runnable(struct sched_entity *se) > > +{ > > Why returning long here? sched_entity::runnable_weight is unsigned long > but could be unsigned int (cfs_rq::h_nr_running is unsigned int). I have reused the same prototype as for runnable_laod_avg > > ___update_load_sum() has 'unsigned long runnable' as parameter.