Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932378AbdC1WXt (ORCPT ); Tue, 28 Mar 2017 18:23:49 -0400 Received: from cloudserver094114.home.net.pl ([79.96.170.134]:56354 "EHLO cloudserver094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752106AbdC1WXr (ORCPT ); Tue, 28 Mar 2017 18:23:47 -0400 From: "Rafael J. Wysocki" To: Patrick Bellasi Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Viresh Kumar , Steven Rostedt , Vincent Guittot , John Stultz , Juri Lelli , Todd Kjos , Tim Murray , Andres Oportus , Joel Fernandes , Morten Rasmussen , Dietmar Eggemann , Chris Redpath , Ingo Molnar , Peter Zijlstra Subject: Re: [PATCH 1/6] cpufreq: schedutil: reset sg_cpus's flags at IDLE enter Date: Wed, 29 Mar 2017 00:18:05 +0200 Message-ID: <1642681.8y9FrPCKVW@aspire.rjw.lan> User-Agent: KMail/4.14.10 (Linux/4.10.0+; KDE/4.14.9; x86_64; ; ) In-Reply-To: <1488469507-32463-2-git-send-email-patrick.bellasi@arm.com> References: <1488469507-32463-1-git-send-email-patrick.bellasi@arm.com> <1488469507-32463-2-git-send-email-patrick.bellasi@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 612 Lines: 13 On Thursday, March 02, 2017 03:45:02 PM Patrick Bellasi wrote: > Currently, sg_cpu's flags are set to the value defined by the last call of > the cpufreq_update_util()/cpufreq_update_this_cpu(); for RT/DL classes > this corresponds to the SCHED_CPUFREQ_{RT/DL} flags always being set. > > When multiple CPU shares the same frequency domain it might happen that a > CPU which executed an RT task, right before entering IDLE, has one of the > SCHED_CPUFREQ_RT_DL flags set, permanently, until it exits IDLE. But if it is idle, it won't be taken into account by sugov_next_freq_shared(), will it? Thanks, Rafael