Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1811772ybv; Fri, 21 Feb 2020 03:57:35 -0800 (PST) X-Google-Smtp-Source: APXvYqy/tx9crmGfq3kqsOvAiJG4+0gQWisEnliR4ElBNtf3E24EEjhh+02c+2ByP5arfrTt7V1M X-Received: by 2002:a9d:470a:: with SMTP id a10mr28596399otf.370.1582286254945; Fri, 21 Feb 2020 03:57:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582286254; cv=none; d=google.com; s=arc-20160816; b=cG0EF9cIMNzQaDCjFypW/FvWBbO9hnlTMrcvz8NoZQrds2pjYcEaH2CopaCPv+a/mF jWNiOhp934/x+QlvJu75gWLMkoeJXVw6kGqIBi60SmLpnlk71BAHmgMpGKuQ/ag/NtIQ G1+luZ2JjrnuiTGEgvzYxBCP/YGbcOm3rmZJ1MXZ7e6twpsEsm2WB19KOIfi4F7LgWSR zimsYmzI5thj/XeQ0ViZMfkP3yoB6cMQmZLb0MohXc0lhF+hYIT3vPtMekDV8O7Vefd0 fPrp4NYrNstcKS1YfmqeA3CYE9XxN0hCgRnjc7c+hu5au9/Bvwj58l9K9FSZhn10PWhW PP7Q== 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=WqvqteUL02nF35aPikvaB2EzjdMLOZk+dtxcf7VAZU4=; b=cRFyGgmKa/ESvyzW32YJxRb9aS/yqruLs7H7DilQc0+R6YtTDyDCFYKybDr73ubwoR LAfDjm5X449Ix1EeYv8MoRBPIXqpYibiV23r5HFG2KtMr+kcpVRSCMHernrSLGQCalAz aI6kQS1WvXOSn67cuTqPzlCmoWxpvBUr8MgM7VkwVFZHYkipPJj+nkH2w8snnKLV9UDr 4fkvB60TCvK86c5owegt+uapdB5JjtyqAZgGr4wigSnOaxrbSCfb/B3iSLkkLSm6nncW EYEFLPlHOQIsjIH2g7LgU5Z5AN7qgfqJjUapA+gng23lIDx9zLmOivc37u/onsGIWdTO iouw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aunIb6a5; 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 x207si673595oif.193.2020.02.21.03.57.23; Fri, 21 Feb 2020 03:57:34 -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=aunIb6a5; 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 S1728630AbgBUL4z (ORCPT + 99 others); Fri, 21 Feb 2020 06:56:55 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:34224 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728402AbgBUL4y (ORCPT ); Fri, 21 Feb 2020 06:56:54 -0500 Received: by mail-lf1-f66.google.com with SMTP id l18so1314090lfc.1 for ; Fri, 21 Feb 2020 03:56:53 -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=WqvqteUL02nF35aPikvaB2EzjdMLOZk+dtxcf7VAZU4=; b=aunIb6a5G6Ktg69dhtVysybM8juQBWfgx5I0gK/uM5eIQ2op2sVE3pIeiJIudw2gB/ NV/8yTZUBTikWco8M4Hhy/0hBB1prqENPbewIB70o8GQPJDFvtrh/rbx3pFPk/tNwADw xHezzG3Uuzd1pRSAEqw9MktFAYrY4Nu5JEn7ZpHJHgpSyH0ZFuwIloFhM075ZwTKpA7s CqSKU7GrsEV+XLPFCwiq7aLFc5zOSARXcBfkcpRKopKj1Fd2UTFQCrCeP5JMmuGM7DWf EhDSjFvKYitAgovZvM3mFkm8XyLgc31CTTcPqScEcS6p0wF/Uhqomna6zImvs+3cZYKc 8XGw== 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=WqvqteUL02nF35aPikvaB2EzjdMLOZk+dtxcf7VAZU4=; b=A4wW55GRo9mZp3PzSLbWoTNjgaDeo/JQRCmADVDVdBLhjNbVojOcj7GGmqAP1Dxigr J4Y3v4ijtw9QOCOuQSjWNOINsinEtfQrMjog1Oi7ZqxVP6Vds2OMx7apZ1CyIf4zWqD9 jhRyI6vwf7HD+G+2zuzoalv+xngKpiTiovamEn+5wvxqeDaM4GQFtR+HUt2nZyn1F6rX ejAkB+63T/qwgYz/5I0zajcLZcCAEfsUCgZkjNpH6svAXw1txGbLOt2OKZggiq/HDi0t f+4c1v4J4MX5e6NXaJFvP/0INGWa9NYDxVVEeSaXN2WjeGXMhRrRwqQSlfa/fWcjEr3i pXsw== X-Gm-Message-State: APjAAAXReFF65yOFVY212Yv6v/AmjZRwA7aDQW2ZQ5VBIEydV62XMCnF cn/5ntkV4EgPD6E8bZh9vt8qYZHIqc/zHUyR81XaMg== X-Received: by 2002:ac2:52a3:: with SMTP id r3mr19674556lfm.189.1582286212249; Fri, 21 Feb 2020 03:56:52 -0800 (PST) MIME-Version: 1.0 References: <20200214152729.6059-1-vincent.guittot@linaro.org> <20200214152729.6059-4-vincent.guittot@linaro.org> In-Reply-To: From: Vincent Guittot Date: Fri, 21 Feb 2020 12:56:40 +0100 Message-ID: Subject: Re: [PATCH v2 3/5] sched/pelt: Remove unused runnable load average 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:58, Dietmar Eggemann wrote: > > 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. > good catch > [...]