Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3268291pxj; Mon, 7 Jun 2021 06:40:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE4FvUjx/8j/wSBEp45vnUhwR79AydpAvtumf9AizYDFQv1RBRSSqK8sVhrBRKYlWayZlM X-Received: by 2002:a17:906:b104:: with SMTP id u4mr17859977ejy.211.1623073235692; Mon, 07 Jun 2021 06:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623073235; cv=none; d=google.com; s=arc-20160816; b=qzS2TbD2JekecI2sNK1L6jMUqI+cU8jZ3OpuwQl5XSIzP/xO0JhHyN+HTLWYMKHuI8 0pY6wFSQkuj5GPYp4mrXAmYykXT3NfxbOG0DAp5ShblKcLzUCNj59BEH0g6ITis83h7J jt9dibW9btj9Z5FDebOxw4C64ONsAkpyzz5Ck3yKUfgQvdRgcJ6KFl2kV2u2gMN2gcQw OXeUmAayqfWErxMoBu4LYXCqwuvJhFG3iu6uwmDf/mjnN5OmX5eKeJRDh9LYl8qJjKtY JDJHMVgLcgy5Hs2Xg8a4eQBtrvCjDzTLk2kONnUJ0FZ4w4x1p0unEKF1wfG3/ZJ/HGfN lL4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=igiYe7SwyKBt7A5QKk3rIAjajnn7ad4fy0OWQQgiPI4=; b=JZseXW1mpTjgJT4AzAtK1+gqmhBkC8WxlllHn1arEx3zTGSt1ANuNAty8vy9A6a36F 0OA/YQrDO6TlMhysaaR55kc2mipsFdx67R3nCBqd7xWQmVrXfD9ftEbos+MABNm24ljq bhDfdsNexdYSellCUA11GhqO9zGDHCe0UDEArOnSbn4gaOs4vZKwqnP/gTSwcsXg+WaN 4KCM+KfZAhjiEaRWjrMEWbhmwGf3Mqb/zDYvmhc746Qbi7yYZvr2Zl3vTfgVqWAqSlhb eksilrB+GAxJlSed7XwYOAzGMIm3p7mfumtJXeQAMpZRWoM70KvHc+yvWJ1rQcQ62Y70 CJ8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@uged.al header.s=google header.b=AL0ARjGG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si4578593edr.280.2021.06.07.06.40.11; Mon, 07 Jun 2021 06:40:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@uged.al header.s=google header.b=AL0ARjGG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230329AbhFGNj5 (ORCPT + 99 others); Mon, 7 Jun 2021 09:39:57 -0400 Received: from mail-qv1-f46.google.com ([209.85.219.46]:43615 "EHLO mail-qv1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230211AbhFGNjz (ORCPT ); Mon, 7 Jun 2021 09:39:55 -0400 Received: by mail-qv1-f46.google.com with SMTP id e18so8789562qvm.10 for ; Mon, 07 Jun 2021 06:37:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uged.al; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=igiYe7SwyKBt7A5QKk3rIAjajnn7ad4fy0OWQQgiPI4=; b=AL0ARjGG2d5UzLScoqRAbXYinCmVuWXQBcHoLRgl5VkHuKhtrwKqmto+JNVUYgKPl2 b3k4tNPWnwv4RcbyMRhhfOdEm01keBZ51WwEy3xtnoGWJHdy0O9oVdSCYKB9gJalztcE 1O17QCIDR4emE/ABvZa7F4Pk6t48ADo7f1xfiGv8qs/T5cpIWZlrxkMA5GxlvBrTWGM9 rljNNoAyIx9MkJQ75F6YKWrBtHge3WmRDRtPJ9xyNH6bSTE4P+sjkFPsXDjcZH35ArlB 4T+hETApzFiQSXxIXIyMMdJXcT5Oa1Db+FDW7mQa13hipnaroVt4L8oh7MhuQxDfEgyH 4MZg== 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=igiYe7SwyKBt7A5QKk3rIAjajnn7ad4fy0OWQQgiPI4=; b=q1+BQeO0AEwLRZiRnHfwd4hvsuZk25NHIPJa9oYnhkpEUblxO2EeKhTW7ovGtbosOz c0JwH5DQe1pxyDOjo2Y6/GOnqaBJG6kLzdTWCxhHzgTqvevhjVv3H69/GDOqv48YC6Br 6F06ruGoLLk4SxlcppOYHiXZb0qFgEzf24pwBxDkYgM7mVWyew660FG9F4OMQa87Q5t/ 30QdAauOOb6v7SEG+BLFdqLRQQbXtDRWNjSb/fcgk8TO0SuFbkJyIZJbtIbOfJaL4FHj l7xKB1PTwgzbUDhGPlDUYenCM9w6f0YqYWX0cGsp6pTM77uP08jIDlV02y9SBAMs/g+O y9kw== X-Gm-Message-State: AOAM530NVivwFfxpiyn/LrWPwFruAihw7pS1mN1LMOcrDkJZNWud2v8Q MZLF171KVYWxJ2OmlDB4ddZ1KBGrpNr8mOJd7xG6Tw== X-Received: by 2002:a0c:eac3:: with SMTP id y3mr18247355qvp.9.1623073010586; Mon, 07 Jun 2021 06:36:50 -0700 (PDT) MIME-Version: 1.0 References: <20210604102314.697749-1-odin@uged.al> In-Reply-To: From: Odin Ugedal Date: Mon, 7 Jun 2021 15:36:12 +0200 Message-ID: Subject: Re: [PATCH v4] sched/fair: Correctly insert cfs_rq's to list on unthrottle To: Vincent Guittot Cc: Odin Ugedal , Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , "open list:CONTROL GROUP (CGROUP)" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > It's not the best place for this function: > - pelt.h header file is included below but cfs_rq_is_decayed() uses PELT > - CONFIG_SMP is already defined few lines below > - cfs_rq_is_decayed() is only used with CONFIG_FAIR_GROUP_SCHED and > now with CONFIG_CFS_BANDWIDTH which depends on the former > > so moving cfs_rq_is_decayed() just above update_tg_load_avg() with > other functions used for propagating and updating tg load seems a > better place Ack. When looking at it now, your suggestion makes more sense. Will fix it. Thanks Odin