Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1691206ybv; Fri, 21 Feb 2020 01:46:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwTr68eBRpJEnlD8cykZmzJiB4CNmeIDNWKyfPlsFZsTZBfTTxVWrZMtqh55lzqT+oBHDIE X-Received: by 2002:a9d:68da:: with SMTP id i26mr28099724oto.65.1582278412754; Fri, 21 Feb 2020 01:46:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582278412; cv=none; d=google.com; s=arc-20160816; b=DbuBjAPKbbaU0tlU4/Gyv9+EYWTXzSYnNn+HZgcvQrjmzDhApcXIa/fIa2ZDsZHdwq HKuXaWS9Qjqa+R5od7hM1X4mwepq02PNCB13PyC0wWnS129SXUCdyoHaWQGcWIDFrCiU 0oaN14PyNdWavaHVbAK8CGOxy57ZafcYmIaVmlLumUEvow+kBh+L+x0nhv99GtbobFwY vrYAMYwuKOLeVJB+RbwkBzkS7ZfMikafpgI95oQtyMem7jez7aeKmsBSn4cVE43IeMAI 5KYaWPqjpq3otSaSrYM7zdfYWvbPjc1+LURRaizAYQtOtI+pKGpGodVc683XwfaS3sgN vj8A== 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=o02tV7/bl4vLNKsUcG3Ef+nQNLk8GhkhmroFtSNi0Jg=; b=Q9MD/KiVHEhdD5t8ISG22GVhfncQM/bmo8iDOvyuX/GfwsrS8bCNmgdCDXllff9rZe xTB/VXk8sOkieNAZIz356qeuMhelrTeHy4JB6yhc1UkfZREislnqOJ+nvGKW/FJuRH0j 5s1UzQVd8w9WOG5tJuPr5hqdtcGqkBSDWotMkfLBi2Z2ZuaA07ewoM0iICRPtZGTabOF ZsRigfLWqs5dVDBRQOz9O0SrbjU0nvF1Yp8ighn9Xdf3cgiokZsxFkUdUA7iF03PiWOz nhC/xjS37rD9xwYaWwnGApbG88q3ErHuDzONEfnMwFavciDDVkJmwq6GXFYzXDDhSQuC Ge0A== 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 w12si1184532otk.77.2020.02.21.01.46.39; Fri, 21 Feb 2020 01:46:52 -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; 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 S1727592AbgBUJp2 (ORCPT + 99 others); Fri, 21 Feb 2020 04:45:28 -0500 Received: from foss.arm.com ([217.140.110.172]:35226 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726244AbgBUJp2 (ORCPT ); Fri, 21 Feb 2020 04:45:28 -0500 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 261F831B; Fri, 21 Feb 2020 01:45:28 -0800 (PST) Received: from [192.168.0.7] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4E2AC3F68F; Fri, 21 Feb 2020 01:45:26 -0800 (PST) Subject: Re: [PATCH v3 4/5] sched/pelt: Add a new runnable average signal To: Vincent Guittot , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, linux-kernel@vger.kernel.org Cc: pauld@redhat.com, parth@linux.ibm.com, valentin.schneider@arm.com, hdanton@sina.com References: <20200214152729.6059-5-vincent.guittot@linaro.org> <20200219125513.8953-1-vincent.guittot@linaro.org> From: Dietmar Eggemann Message-ID: Date: Fri, 21 Feb 2020 10:44:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200219125513.8953-1-vincent.guittot@linaro.org> 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 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). ___update_load_sum() has 'unsigned long runnable' as parameter.