Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp85621ybi; Fri, 26 Jul 2019 06:32:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwk6f3PkaAdGYfpb1KsOkoivLgzODRTx9vAhALmIdUOoUBrFlwPdNhPgF2IWRZkkjpD7Zy5 X-Received: by 2002:a17:90a:a613:: with SMTP id c19mr100180200pjq.17.1564147926892; Fri, 26 Jul 2019 06:32:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564147926; cv=none; d=google.com; s=arc-20160816; b=Nq1J5INly4LxnrJ43QqikjL89qVQpwm+xTM6WAdrtLWJ36j95aUVg5+Den4G6bUHUE vgA85NgPFTdj8E4/gGzN74AgBs0RkbUwoi+KEqeudQlGVobcMhtPtpXEMmzmo5DzUgiZ sYZ0FkZh0xojcLj/IWTPxp2utyYvd3Qa0l//K2Z04DA3D8k8ejy7CYURVSq2+wWweUoK /u99oOYiATEVP/Q9uQvD8+7RqJCr5N4Fb6Gmx4UjjtBAQvaSYh0mtDNH5gldMGFI7X3t CDLc9dZp6L2B2MgAw8fjXQ+Ac8PxLf9YfXxRhZEdA3uVa4M+UInEljmwu57mI8Pxm5oJ 7s0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=EZRk9IQk8diu9Fp+43xr0KYgtbTlV7cmPW4jyA7EYTA=; b=btAPbRPr79QpX8Jfk3PfWWcuGhQIn/mpyO9s3kpEwZ/WGEJEhRk57/brwkvIxBmuE8 CSWBQ7hbcOKci82m0oBBYkLCHNMcn27MIlurZBTKNDUKbtI3uEWVIA2OSfadZaApsw2P ZsOZUd5HiUaU2ag4ZjJjHsWScGpa/4wfm96RFdVPEwNzkIJO9gKHJkf9vplQHPPjFnJl vdkkdMjWBT5q0DaumKESWD6DVwXaPugh3jHlgzncxOsjeO8VIzEvdaWRuFNFdNDyBZPZ CFqKdzbgARb/suaW3gKsONqBhKbQm+l0GsNxbK3gTLIMyZ2XjUr+dUdmNCy+JCJGC7uM Wryw== 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 s24si19906046pfh.227.2019.07.26.06.31.50; Fri, 26 Jul 2019 06:32:06 -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 S1727004AbfGZNaL (ORCPT + 99 others); Fri, 26 Jul 2019 09:30:11 -0400 Received: from mail.santannapisa.it ([193.205.80.98]:45992 "EHLO mail.santannapisa.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726666AbfGZNaL (ORCPT ); Fri, 26 Jul 2019 09:30:11 -0400 Received: from [151.41.39.6] (account l.abeni@santannapisa.it HELO sweethome) by santannapisa.it (CommuniGate Pro SMTP 6.1.11) with ESMTPSA id 141121803; Fri, 26 Jul 2019 15:30:09 +0200 Date: Fri, 26 Jul 2019 15:30:02 +0200 From: luca abeni To: Dietmar Eggemann Cc: Peter Zijlstra , Ingo Molnar , Juri Lelli , Daniel Bristot de Oliveira , Valentin Schneider , Qais Yousef , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/5] sched/deadline: Fix double accounting of rq/running bw in push_dl_task() Message-ID: <20190726153002.5e49c666@sweethome> In-Reply-To: <20190726082756.5525-2-dietmar.eggemann@arm.com> References: <20190726082756.5525-1-dietmar.eggemann@arm.com> <20190726082756.5525-2-dietmar.eggemann@arm.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, 26 Jul 2019 09:27:52 +0100 Dietmar Eggemann wrote: [...] > @@ -2121,17 +2121,13 @@ static int push_dl_task(struct rq *rq) > } > > deactivate_task(rq, next_task, 0); > - sub_running_bw(&next_task->dl, &rq->dl); > - sub_rq_bw(&next_task->dl, &rq->dl); > set_task_cpu(next_task, later_rq->cpu); > - add_rq_bw(&next_task->dl, &later_rq->dl); > > /* > * Update the later_rq clock here, because the clock is used > * by the cpufreq_update_util() inside __add_running_bw(). > */ > update_rq_clock(later_rq); > - add_running_bw(&next_task->dl, &later_rq->dl); Looking at the code again and thinking a little bit more about this issue, I suspect a similar change is needed in pull_dl_task() too, no? Luca