From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C565EC433B4 for ; Mon, 10 May 2021 09:28:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 954D06142D for ; Mon, 10 May 2021 09:28:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230294AbhEJJ3F (ORCPT ); Mon, 10 May 2021 05:29:05 -0400 Received: from foss.arm.com ([217.140.110.172]:50128 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbhEJJ3E (ORCPT ); Mon, 10 May 2021 05:29:04 -0400 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 91936106F; Mon, 10 May 2021 02:27:59 -0700 (PDT) Received: from e120877-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D43EC3F73B; Mon, 10 May 2021 02:27:57 -0700 (PDT) Date: Mon, 10 May 2021 10:27:51 +0100 From: Vincent Donnefort To: Xuewen Yan Cc: Dietmar Eggemann , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Steven Rostedt , Benjamin Segall , Mel Gorman , Daniel Bristot de Oliveira , linux-kernel , Chunyan Zhang , Ryan Y Subject: Re: [PATCH v2] sched/pelt: Keep UTIL_AVG_UNCHANGED flag in sync when calculating last_enqueued_diff Message-ID: <20210510092751.GA36522@e120877-lin.cambridge.arm.com> References: <20210507112031.23073-1-xuewen.yan94@gmail.com> <20210507123528.GA106818@e120877-lin.cambridge.arm.com> <20210507153827.GA176408@e120877-lin.cambridge.arm.com> <20210507171438.GA326455@e120877-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > > > static inline unsigned long task_util_est(struct task_struct *p) > > > @@ -4002,7 +4002,7 @@ static inline void util_est_update(struct cfs_rq *cfs_rq, > > > * Reset EWMA on utilization increases, the moving average is used only > > > * to smooth utilization decreases. > > > */ > > > > Needs to be updated to add: > > > > last_enqueued_diff = ue.enqueued & ~UTIL_AVG_UNCHANGED; > > The flag had been cleared before, otherwise would return earlier, so > there is no need to clear this flag again. Indeed, my bad. All good then. -- Vincent