Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4337035imm; Wed, 30 May 2018 03:52:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKpdpOwxFvZ64voWoE6fdhbG51yRzPGJwN1zW1DypgL0zbuUfEFAdYU7V50VCqvy/6c9aed X-Received: by 2002:a17:902:5e3:: with SMTP id f90-v6mr2402716plf.175.1527677528435; Wed, 30 May 2018 03:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527677528; cv=none; d=google.com; s=arc-20160816; b=m+qcQ9/bMy0K207Xy6RtTj+KbjQOi+h7KwiciosGKvVu72mt5YSMvb7kRXB3lUbh5u G8qV7q6ixG4jz6Xi1sUgWlEfMWwqYkFfDE7OYHl0KV5TCRvvGroAdUbinuaFagso1bS3 xHAIikiDbAEfUe/AZisUuSsFdl9Ec9NwbCvkXBohjwjWHejlWzhoWrBQg919SRqLoyAZ MFvH0UEcUjfaIfWHfWnfm8F/77XWHsz1BJODpPrZBPZwIokoAaslPbFT2MUC0C9+BQVJ DfVpESz0isb47Lp/lROoSqXOkjRCSuSs7RZRk8q19Mfbyalz4nmb2QRb1kKwKHaDTT1l eVtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=7vl7V/8hcpEsHlr9UwIV/p+1lATjjVCtuHumfRwwHig=; b=fGH7oozCxSwGNBc3ZUHQzFPCTCL765S9CzGEtiCKLB8r0wHmFPdMdmZEOBMHbI3n2v gfEDncoT9mydDHd83QdKYGjaEyPWiDYLEjykpEUQ60JE3SgrGw4mEBS5QGHRzZWlw0fh 7uYVKkPYOsuK+UGyR1Gtw2RlQOtOdrzst/xPDfcCVrO44UsdXF+DAHvlYgcyucIXdL0b tSyVnUoUi0+c1l3/8YojjFeVcA7+5ZjqohyLMvKal5fakCR48oIc5UqMhfhiIOqza+18 Mcgr8tNJgq9SzpZphmKSMY8c/QIlw3A+PToGLEAX42Aby1XS5Mez8u38EospTgIRM7AW lchA== 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 w190-v6si10121133pgd.5.2018.05.30.03.51.54; Wed, 30 May 2018 03:52:08 -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; 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 S1751921AbeE3KvA (ORCPT + 99 others); Wed, 30 May 2018 06:51:00 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:54014 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751803AbeE3Kuz (ORCPT ); Wed, 30 May 2018 06:50:55 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CB4F115B2; Wed, 30 May 2018 03:50:54 -0700 (PDT) Received: from e110439-lin (e110439-lin.cambridge.arm.com [10.1.210.68]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DD38A3F25D; Wed, 30 May 2018 03:50:52 -0700 (PDT) Date: Wed, 30 May 2018 11:50:50 +0100 From: Patrick Bellasi To: Vincent Guittot Cc: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net, juri.lelli@redhat.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, viresh.kumar@linaro.org, valentin.schneider@arm.com, quentin.perret@arm.com Subject: Re: [PATCH v5 04/10] sched/dl: add dl_rq utilization tracking Message-ID: <20180530105050.GI30654@e110439-lin> References: <1527253951-22709-1-git-send-email-vincent.guittot@linaro.org> <1527253951-22709-5-git-send-email-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527253951-22709-5-git-send-email-vincent.guittot@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25-May 15:12, Vincent Guittot wrote: > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > index fb18bcc..967e873 100644 > --- a/kernel/sched/fair.c > +++ b/kernel/sched/fair.c > @@ -7290,11 +7290,14 @@ static inline bool cfs_rq_has_blocked(struct cfs_rq *cfs_rq) > return false; > } > > -static inline bool rt_rq_has_blocked(struct rq *rq) > +static inline bool others_rqs_have_blocked(struct rq *rq) Here you are going to fold in IRQ's utilization which, strictly speaking, is not a RQ. Moreover, we are checking only utilization. Can we use a better matching name? E.g. others_have_blocked_util non_cfs_blocked_util ? > { > if (rq->avg_rt.util_avg) > return true; > > + if (rq->avg_dl.util_avg) > + return true; > + > return false; > } > -- #include Patrick Bellasi