Message ID | 1511361355-10715-4-git-send-email-vincent.guittot@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp254059qgn; Wed, 22 Nov 2017 06:36:33 -0800 (PST) X-Google-Smtp-Source: AGs4zMYnDOUOgR5RXLVAjNnQmYoM7p37MLaaTpzaOk0/2LA543xQTTzGBSzmlVC7hycrzpYsoxv9 X-Received: by 10.99.126.78 with SMTP id o14mr21046070pgn.159.1511361392915; Wed, 22 Nov 2017 06:36:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511361392; cv=none; d=google.com; s=arc-20160816; b=CRy7+SRTH9r3jiZyeTh+KcbBPEg0FEIcfZAt+rAXHS879BVtoeqYwp9mpLQN3VR1wV /m5ZRTXap/OdRbnwCVgjEjLyA4RKLZyX4UoYr2+2oD0zbx/jnnPy8YqQGZJaSE4OBTUH 0hXgsS7RF+9//TNwSZvO6HCxljUSQ8gzSARtCP40EReqLI0XelS3B8oMlGSefw/wt+It Kn2tazuayii8oyJvtERaWmAy2ug7EbxEU009pfSaXwpmImF5EsOBjFfP/7QvdnTujDzt GtwLmuS1k5rQjZUlabrGYeeM8jXZ3z1Hr7kDJlixR267Jzs9/8UeHHxKkjvsKVdZYTxh 9DzA== 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:dkim-signature:arc-authentication-results; bh=IAUQ9Qmuei7/n87obcKNnGkKXEbQTDehiueOWWs0zv4=; b=nH6h+BzYiDRHhNmYS9monAnAeFEFXIeP3/iun6RY78NXBHCTP9Z2jxUNmj2g2cj8Cl 7RcOk6IEZz2co3fRoSyIdwjnJpd9Mvs/x/wPvxyQo6XFHOYPDL/Aoofaaun43A3VIyeJ JEpNqidDO5gRbwBQ/3zxC+9HSxUAgx9hOlCd+IPRJGKez+y6FhaJd6B9Y52t3TMl/fLY Rl+wrTn1WmbBxwSs4B1KNV2/KwkYq/RTym76QzAiXyNcZGtHoYwMauTXsR1ik/TMdYSZ 0ZDtwKTwQJKW+2NtFhqjcdcWOv0oIojP6nqhomPY5UI6O4dq6wc3i7437MplCLGk7ZYF HRmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ffLJwGCQ; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n18si14856590pfh.268.2017.11.22.06.36.32; Wed, 22 Nov 2017 06:36:32 -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=pass header.i=@linaro.org header.s=google header.b=ffLJwGCQ; 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 S1751644AbdKVOga (ORCPT <rfc822; dan.rue@linaro.org> + 28 others); Wed, 22 Nov 2017 09:36:30 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:41573 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751510AbdKVOgN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 22 Nov 2017 09:36:13 -0500 Received: by mail-wr0-f193.google.com with SMTP id z14so14715002wrb.8 for <linux-kernel@vger.kernel.org>; Wed, 22 Nov 2017 06:36:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IAUQ9Qmuei7/n87obcKNnGkKXEbQTDehiueOWWs0zv4=; b=ffLJwGCQKGH+WknWgmG8tm6YV/GbIlQnZjJcyo6E+gt8k5kBfZmyIxOSGCvOxaWNMC r5Wp5MX+mUgU9IBmj9P4OHggZE/p91OpA+jNdu1yvBL84kh2zur3KJKWobPaU+5FOG6+ jAfYO83WdmjNMZG362tKFichYG8OZHIBOpo7w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IAUQ9Qmuei7/n87obcKNnGkKXEbQTDehiueOWWs0zv4=; b=J/F8pWETUX+qWI7PR+KMTMXadQ0sy5j1ztXXfh2TzG6iURRNLT7EYIzyitC/a5TKYd GcF7MF87RPuHYkMgnAYLvdmN2DeL1NJisyYmFHeUou/AXJm3anPY62nXrpL1H33U05Xz MguCdub/qt+9omZYG7mPHqmaCsIWXvVHUCGewz5zYu1YcGHYZKy5+tOfdO4ZsZIXvPVO Kp9RxgO/VaJvxIvjRLNd4HiB/cy8hQ1paWBFDQPCtx6s8zV86pKWhHq8TRzLZfk3Hfky /niMSqJy4WyBOx0/cqOuqB8lURSwQnqlLN0UcTglPsL4S897PB30/WV3J1CB/x2e/w8n fdXQ== X-Gm-Message-State: AJaThX45VA2vsffepI72r1ivl4MBRd2kzi8urN3yKp2FLSgeg8rLIAG3 X0JwqHGZRZ7R6aUiMIQ+kJP5VA== X-Received: by 10.223.129.35 with SMTP id 32mr16802013wrm.271.1511361371976; Wed, 22 Nov 2017 06:36:11 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:f:6020:f445:1e6c:5367:6c59]) by smtp.gmail.com with ESMTPSA id v18sm7931087wrv.37.2017.11.22.06.36.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Nov 2017 06:36:11 -0800 (PST) From: Vincent Guittot <vincent.guittot@linaro.org> To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net Cc: juri.lelli@arm.com, dietmar.eggemann@arm.com, Morten.Rasmussen@arm.com, viresh.kumar@linaro.org, Vincent Guittot <vincent.guittot@linaro.org> Subject: [PATCH 3/3] cpufreq/schedutil: add rt utilization tracking Date: Wed, 22 Nov 2017 15:35:55 +0100 Message-Id: <1511361355-10715-4-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511361355-10715-1-git-send-email-vincent.guittot@linaro.org> References: <1511361355-10715-1-git-send-email-vincent.guittot@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
sched/rt: track rt rq utilization
|
expand
|
diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index 9209d83..d06a41e 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -183,7 +183,7 @@ static void sugov_get_util(unsigned long *util, unsigned long *max, int cpu) cfs_max = arch_scale_cpu_capacity(NULL, cpu); - *util = min(rq->cfs.avg.util_avg, cfs_max); + *util = min(rq->cfs.avg.util_avg + rq->rt.avg.util_avg, cfs_max); *max = cfs_max; }
add both cfs and rt utilization when selecting an OPP as rt can preempt and steal cfs's running time Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org> --- kernel/sched/cpufreq_schedutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4