Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp560469ybc; Tue, 12 Nov 2019 05:58:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxWRt2luCcIeEnO4GEaThi9o8jORQSo4KxBSfH8oGetSKH5mW4SSfStlg0Z7QYdnr4hrqfb X-Received: by 2002:a17:907:2070:: with SMTP id qp16mr28476296ejb.115.1573567084653; Tue, 12 Nov 2019 05:58:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573567084; cv=none; d=google.com; s=arc-20160816; b=rNnF8/oPxIvv4thrBToqezkmYkOTCnZ5GtBtepSwQBTU8a5rLFoVHbtxeU6gN5XLrN j+JObFLQcPmIF+eTpCD5Hxn2jq4xow1m8CxQk4pyqO/BzEqhQgPeT771zAVbs/94iujG X4wLv/waPEz8RVZiK+HHKt/cGxJWtorowsUk4nu5UQoIMDWgTB+Yqz680FH394kx0Xbz vGb1MmmS7N7hoxL6/TAF0m5VNQC5ZiCEXCDjj9w8IcQT2CwzsXL3t85ha/4G1Kym9HR/ abaVHOfLcXm4s/51j7dMAGNtmfpVpYS2QNJ8iaAH1noGb0uf+88oosvs8i5EFBCswY59 ruvA== 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:dkim-signature; bh=0gfyjZf/VkRczcU4sCGbmN62xzhqDkxbH1u5ItJHUYQ=; b=PiyAC93okn+uSxlyNk6XRsSZhdGCPRuhwfcaymI6WY8qp4uPIHVNw0fRnsDqB9RU38 G/Ik1vrDC61ke1x18xAGkzJ9vBBDKZm/C3U7D1puuOnyaEZdVkMx/P1iqDJ0iGaDt4wX s+avod/BRhEAAyDLW0fmNvRtTdeeuBhIpg5nErZI3LxH4RHgFOkdY1VZ7b/JwQ2kI9Kc qyBa5My8a8j/yrbk6X7Vh0E4mbY7FXKcGuekhZ33XHMSy/28nQBIwyKhn0ct+0rxpM5k /q3VQngSdqSoffR+sXDracNRuivS/iEc0JicfrCsoyOr9S8LRD8E0hD1pxlG3FPx7z25 D5DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=E1OYAGZ6; 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 e15si13586524eda.106.2019.11.12.05.57.40; Tue, 12 Nov 2019 05:58:04 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=E1OYAGZ6; 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 S1727012AbfKLN4m (ORCPT + 99 others); Tue, 12 Nov 2019 08:56:42 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:43178 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbfKLN4m (ORCPT ); Tue, 12 Nov 2019 08:56:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=0gfyjZf/VkRczcU4sCGbmN62xzhqDkxbH1u5ItJHUYQ=; b=E1OYAGZ6QawAHpMqak+xq8eQs t5+/GHeNS20qjAOHLBPkn/1QlFSqcSHKHCC8jJWx3MYZyYWJJt5a7FZ7lIUSeCe7G8xFAUG7pjpu9 XQoicGVskONd6zSmbJcu01sYOjSA6KzKjlCP2dSC/hGs6KfCMYN+GELNVLNPEqcISgOi9erl9KtB9 1ne3icNuruSw8v1hr40Dj9q5++l8PoPvb/idRUbIDmLV0GKDaggg8yQSSlZNmsP9QMxUkDqPbGcnv 9lndRI9Own8SiA6cRxQ9nBEuX6ZNswZVRinqYXxXHeL78lrKPTBUxdGHvQdXfObtjAvrkITFi9IN0 vyMjkkhXw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUWeg-0003kt-SK; Tue, 12 Nov 2019 13:56:27 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B546F300DDD; Tue, 12 Nov 2019 14:55:16 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3B99C20187E7C; Tue, 12 Nov 2019 14:56:23 +0100 (CET) Date: Tue, 12 Nov 2019 14:56:23 +0100 From: Peter Zijlstra To: Juri Lelli Cc: mingo@redhat.com, glenn@aurora.tech, linux-kernel@vger.kernel.org, rostedt@goodmis.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, tglx@linutronix.de, luca.abeni@santannapisa.it, c.scordino@evidence.eu.com, tommaso.cucinotta@santannapisa.it, bristot@redhat.com Subject: Re: [PATCH 2/2] sched/deadline: Temporary copy static parameters to boosted non-DEADLINE entities Message-ID: <20191112135623.GU5671@hirez.programming.kicks-ass.net> References: <20191112075056.19971-1-juri.lelli@redhat.com> <20191112075056.19971-3-juri.lelli@redhat.com> <20191112105130.GZ4131@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191112105130.GZ4131@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 12, 2019 at 11:51:30AM +0100, Peter Zijlstra wrote: > dl_se->deadline = rq_clock(rq) + dl_se->dl_deadline; > + dl_se->normal_deadline = dl_se->deadline; Or rather something like: static inline dl_set_deadline(struct sched_dl_entity *dl_se, u64 deadline) { dl_se->normal_deadline = deadline; /* * We should never update the deadline while boosted, * but if we do, make sure to not change the effective * deadline until deboost. */ if (WARN_ON_ONCE(dl_se->dl_boosted)) return; dl_se->deadline = dl_se->normal_deadline; }