Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1700671ybv; Fri, 21 Feb 2020 01:59:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxET20M92GaE4hDwlp0vtPkoNIpUm52kXAvG71rH97NkAHlW8RCqnTksCIEp30ZJYGlrUM8 X-Received: by 2002:a9d:5e82:: with SMTP id f2mr26389947otl.240.1582279156333; Fri, 21 Feb 2020 01:59:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582279156; cv=none; d=google.com; s=arc-20160816; b=KHlg/eGe5AP8bf3zbjhzpA/xVhD/6mEzJyfEVTUJmgA4ygiTpOb/UuQ0jGEX3b3+44 aEmgxwc8zQlipI7A3RXmG8HsTNNpCeNnmH/PLrSk8txvkFAU0doVaQr01gDGX2s00gj/ OItHDLcBsaj8qpPvaL0Vokj1U19Ybzax+iq9vv+9AVY5iOQgaxaXYN3ihwlEdA72Qzrg OK5ztECKsBIrMzNPCDR9RI4LLVvA/akV2YbdrQEXaJCgW9zeyHHISna2RT5sCs033Nvu LFY0qePwkUM25FP49nRTsRumG+qrofwgmjdUnEhhmCQENRZsrMjSy+XJ/Tvxjw3XX/aK SLhQ== 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=0k7lbeJTyv04ZGCMhJmtHyzoyH7+uclG3av54jlw7bc=; b=WVPb3jO6mjmxj8qu+PwjfDTXAQ4j1wGR1BVsF+Rrwe1bcARDN6059iOwznKRp+4YVR zUBPy/Y2E/fx0/xRlIKg2AVqtUMlCpAaEZPBauj8BN2p8rmkIfSzWqw0arkoM2BjwwaH zFTqmrMB/+rNqQZ6LPTAso5zLOziv+C4dd207ElRLsD7wQUNpnhXB54LJlLnCdfWiYzV M5lI62MMLE6s7uTYjaSJRzX9wVRAQ/Mdt7wfuTEWFv+c9ZJ1sDc397mmqgTE8wZa90io FsMPOwX11G7N1X7qDNbPS57IyObVaq10JltevoQSuM1/jAcPYLn2I25SrRNzPCQ9XfWS oaQQ== 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 h2si517300oie.151.2020.02.21.01.59.04; Fri, 21 Feb 2020 01:59:16 -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 S1728267AbgBUJ6D (ORCPT + 99 others); Fri, 21 Feb 2020 04:58:03 -0500 Received: from foss.arm.com ([217.140.110.172]:35472 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726989AbgBUJ6D (ORCPT ); Fri, 21 Feb 2020 04:58:03 -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 C165F31B; Fri, 21 Feb 2020 01:58:02 -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 F23693F68F; Fri, 21 Feb 2020 01:58:00 -0800 (PST) Subject: Re: [PATCH v2 3/5] sched/pelt: Remove unused runnable load average 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-1-vincent.guittot@linaro.org> <20200214152729.6059-4-vincent.guittot@linaro.org> From: Dietmar Eggemann Message-ID: Date: Fri, 21 Feb 2020 10:57:20 +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: <20200214152729.6059-4-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 14/02/2020 16:27, Vincent Guittot wrote: [...] fdef CONFIG_SMP > @@ -2940,15 +2913,12 @@ static void reweight_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, > u32 divider = LOAD_AVG_MAX - 1024 + se->avg.period_contrib; > > se->avg.load_avg = div_u64(se_weight(se) * se->avg.load_sum, divider); > - se->avg.runnable_load_avg = > - div_u64(se_runnable(se) * se->avg.runnable_load_sum, divider); > } while (0); > #endif > > enqueue_load_avg(cfs_rq, se); > if (se->on_rq) { > account_entity_enqueue(cfs_rq, se); > - enqueue_runnable_load_avg(cfs_rq, se); > } Nit pick: No curly brackets needed anymore. [...]