Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11902264ybi; Fri, 26 Jul 2019 01:30:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWa7eEjZdYcWi32ET+UdjpbNVyjBFPm7yWi4T+zbnOmzBhWuHETqB91l3uMjt/vKzsiqO5 X-Received: by 2002:a65:690e:: with SMTP id s14mr77218148pgq.47.1564129839613; Fri, 26 Jul 2019 01:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564129839; cv=none; d=google.com; s=arc-20160816; b=dYyhO5OT5dzhOGWxFc0EJ5KA4yGjpuN+3+bL1nbHNJE/5hJC5A4lAWjGusttNAOl4J qYwuFLyNp/5EJQMEUX2X9QIPdv083DI4/Ew5PlSVmaAideXN4UbJY26PyEJlILEd3tfX G8AzDkGyuFU7ONpqi8IfcPaby8+n6QtmP98dEx8LwIGOu5wF24306QLBO5Te0RN/DVyQ BMYJESxQEL/TpdLVsGnKbD5YPkQUNsev2M5Qlejlk6MH+pjzHuyhQMv3JG82nL4BakRf jVmn0RboSH3UOdRaaB0+VytGSTWmWJ/McVLGps66X43yy79YWz47ncZ3m15TAACzE5+F eMew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=AA9LgQRCM+5cHiz3w+Se9I2ydU8H0RFQRExSFaIvrjY=; b=qqogjR0qwuWUxD7AzOOmueKat+pLCvGGotbMzyEb/AfYHjhZqD9sU1jgeFTcEi0iAT D99VJfzwAvyarVMqSTTmQyxm8m23t5mn88chsu8VSP2Y0dJNnv2pXvhzd6Ie9mp2yjYx VAPvb8x5ohJXohQOPV+08w2pHwdF0G/j/v5p5z8Esg91mt0/ZXaifzDtjneAD2UgIqqY Ewyrzc1m7P4lInyR2yIj6mkmwALNpNULD97CeRoOvvnDfU+h8+cenEzxSc1viYW93nKP mMqB5tnjCu+uDU3LRzYOwiNR47eyIc0NsKkGtwidiRUrzoB55NoVk6hRimhOBpwbZZYB zGLw== 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 d1si4733828pgn.512.2019.07.26.01.30.24; Fri, 26 Jul 2019 01:30:39 -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 S1726589AbfGZI3o (ORCPT + 99 others); Fri, 26 Jul 2019 04:29:44 -0400 Received: from foss.arm.com ([217.140.110.172]:39508 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbfGZI3i (ORCPT ); Fri, 26 Jul 2019 04:29:38 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 76F1915A2; Fri, 26 Jul 2019 01:29:38 -0700 (PDT) Received: from e107985-lin.arm.com (e107985-lin.cambridge.arm.com [10.1.194.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 4F7F63F71A; Fri, 26 Jul 2019 01:29:37 -0700 (PDT) From: Dietmar Eggemann To: Peter Zijlstra , Ingo Molnar , Juri Lelli Cc: Luca Abeni , Daniel Bristot de Oliveira , Valentin Schneider , Qais Yousef , linux-kernel@vger.kernel.org Subject: [PATCH 3/5] sched/deadline: Use __sub_running_bw() throughout dl_change_utilization() Date: Fri, 26 Jul 2019 09:27:54 +0100 Message-Id: <20190726082756.5525-4-dietmar.eggemann@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190726082756.5525-1-dietmar.eggemann@arm.com> References: <20190726082756.5525-1-dietmar.eggemann@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dl_change_utilization() has a BUG_ON() to check that no schedutil kthread (sugov) is entering this function. So instead of calling sub_running_bw() which checks for the special entity related to a sugov thread, call the underlying function __sub_running_bw(). Signed-off-by: Dietmar Eggemann --- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c index 99d4c24a8637..1fa005f79307 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -164,7 +164,7 @@ void dl_change_utilization(struct task_struct *p, u64 new_bw) rq = task_rq(p); if (p->dl.dl_non_contending) { - sub_running_bw(&p->dl, &rq->dl); + __sub_running_bw(p->dl.dl_bw, &rq->dl); p->dl.dl_non_contending = 0; /* * If the timer handler is currently running and the -- 2.17.1