Received: by 10.192.165.156 with SMTP id m28csp419212imm; Wed, 11 Apr 2018 01:01:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx493+Vs8iWrTrBhYs1KkRkeFnUM0dlgQTfB4rvE8Z6hnWIpga6c9rsl8ExGBqqnWkOeHBZvL X-Received: by 10.101.99.154 with SMTP id h26mr2631132pgv.3.1523433673563; Wed, 11 Apr 2018 01:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523433673; cv=none; d=google.com; s=arc-20160816; b=giHq2HDdRv+ZSvonZKhIuq6M6rjIEC/i1QN+2EdKDNyDvRUmx+c1inzmJVw8kqlgZU +sx8ORaAsuk5ESZI95wo7ndqEkUGu/WAjXb9XFgpU1I7HyeKGKmnvQQoPSMLMKwL/shJ WzgIHiAPpJuah8ljvseynNMRlG4xUkp3BrY66NSwTj9bkCknJARutBR1NURD27LepGzT C+CCgoG9ZLw8pP8PpfQ6sNncYmOPYyJwy3DiY4JxmZSB2pxveLJu1aTtxLgscUiUxRdU DKsJEWGfN86XHDTrC0/17RdYihQaK/K//s+4G5wUvOexOgBDkP50a6nBkn6Z6bc3j7zE 1InQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=4eehwsZXTHjbuPLX9B7YPCqkgAswai+haO1RrMZ/AKw=; b=cWoBbs1/ftLtU/erwujSwyoQ6nBCTBPpNFYCvnQd0aD8eJlevsACzb97bjfKxWDchg dGvG2TzN4TPHr5DmawoRvfygAPyIm/bm96ctWBMkhAvnT5gHMTf/1IgTMr2EAbA/opUA kwo3d8os5ppqZixxkOWMFEgoBxFLAQDNMOKru3ROlzgrfIkB+udLjz129YfRT0lntoL9 L2Sy6gW9EIXZWcPQTaOgFulCzMnHWm+hRoSbTZrwj1fCNuwBCIgOPnSeFADceaK1QUSR sFmSH5AqmCDLjZ1nQw9DFuzEmaio7w96mh6XTfkW7xTE2IghLQaZFRkjx20OcUsWVEOJ 8QPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aTEFK3LC; 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 o3-v6si602999pld.384.2018.04.11.01.00.36; Wed, 11 Apr 2018 01:01:13 -0700 (PDT) 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=aTEFK3LC; 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 S1752303AbeDKH5v (ORCPT + 99 others); Wed, 11 Apr 2018 03:57:51 -0400 Received: from mail-it0-f49.google.com ([209.85.214.49]:40942 "EHLO mail-it0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752229AbeDKH5t (ORCPT ); Wed, 11 Apr 2018 03:57:49 -0400 Received: by mail-it0-f49.google.com with SMTP id u62-v6so1542914ita.5 for ; Wed, 11 Apr 2018 00:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4eehwsZXTHjbuPLX9B7YPCqkgAswai+haO1RrMZ/AKw=; b=aTEFK3LC0lcNetsgPpRDQz5vIAuJ4jHGexWBcXvzHbHJjDdKyQktb+zTWYoE4vtH+2 2VArMj1PVzUihxYSnlDEVM2Wb11SUKX+FtZ0kArNH7tXuJtiVJcDkp6fdz74f4qraNfv IFKUum0MeHs5o6j+FQ7sYJQRuPthHIRFXf89Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4eehwsZXTHjbuPLX9B7YPCqkgAswai+haO1RrMZ/AKw=; b=Z6VrY10UT/d2W8ECx+cBJNaB18w5+FoqfshnDhy3K8fnMUGtXiETVR8C8GnsdKqPan ge/IkieLZERBKMbHXB4OSsEumYKIgkNexMiHhfMhW7DGu/xw60pRI3SUw9gBXP7fUzat CRbpin1qhScJnyeWuxoBbiObk1EDn5TNHDK64nRmkYhejor0ubQLdunRn/Z9+NTvcdby 0vHwDpRiq4Bom3clq6XJyW18FTH1nulmMKzWZSbmPjEK0+BogFyFdFuFFvvQZdzkPQ0E kNSGzP4Q3cpjKBrJofTokbnVxvW9cIg0JKU3DQ1mGT1XxJ0Ummf94QR+y6ibdItHT7cK 42ow== X-Gm-Message-State: ALQs6tCku29BaXMb0qoD4CUnqV/ObVR111v40VQXRH+y7YsxijuFEIf7 vylNifKdf5DRUyo9nykbk+CRBAdLClRJ6MiWAtMf5w== X-Received: by 2002:a24:1acc:: with SMTP id 195-v6mr2679098iti.89.1523433469090; Wed, 11 Apr 2018 00:57:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.222.20 with HTTP; Wed, 11 Apr 2018 00:57:28 -0700 (PDT) In-Reply-To: <20180406172835.20078-1-patrick.bellasi@arm.com> References: <20180406172835.20078-1-patrick.bellasi@arm.com> From: Vincent Guittot Date: Wed, 11 Apr 2018 09:57:28 +0200 Message-ID: Subject: Re: [PATCH] sched/fair: schedutil: update only with all info available To: Patrick Bellasi Cc: linux-kernel , "open list:THERMAL" , Ingo Molnar , Peter Zijlstra , "Rafael J . Wysocki" , Viresh Kumar , Juri Lelli , Joel Fernandes , Steve Muckle , Dietmar Eggemann , Morten Rasmussen 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 6 April 2018 at 19:28, Patrick Bellasi wrote: > } > @@ -5454,8 +5441,11 @@ static void dequeue_task_fair(struct rq *rq, struct task_struct *p, int flags) > update_cfs_group(se); > } > > - if (!se) > + /* The task is no more visible from the root cfs_rq */ > + if (!se) { > sub_nr_running(rq, 1); > + cpufreq_update_util(rq, 0); call to cpufreq_update_util() should be done after util_est_dequeue() > + } > > util_est_dequeue(&rq->cfs, p, task_sleep); > hrtick_update(rq);