From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF0F122E412; Thu, 17 Apr 2025 12:23:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744892629; cv=none; b=dEMdxp8g8wMbaDlcDmJt+gA9B0hzaZb6c3dzbNEgF2yG4TENgMf9Ha7Dvmt5zR45glYjXYHxHvA6Mq2+LwmLBesDn9e0Pz4s0iAg8XBSXvj7zdeh3vzuLQ5MSmPIcQTd9847PwX+88XgDcoyfRYeZUq20C+uLMgSVX1OlJ/wMro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744892629; c=relaxed/simple; bh=U2w5Y1yKb1SyuJm1REWVhM+80qvh+DHvLiIsZMbe3PA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CMswmQjNViCoxmJyS2pmNUdzbGz6Rs+14g1saKn7aFHOUfOUJJ4ZzpUJDYO4Yt8IOFQ8UlX412WoUKOmwN5D/ssI7gpRt9DT8wzwulmE5o0fCS8c4RnNb180lO28FnCyBHmcxd5rm8Dnil0ctLB4o2/fU8hci6pXUfRrLfpH1N8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 C55AB1515; Thu, 17 Apr 2025 05:23:44 -0700 (PDT) Received: from [10.1.25.43] (e127648.arm.com [10.1.25.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EB8853F694; Thu, 17 Apr 2025 05:23:45 -0700 (PDT) Message-ID: Date: Thu, 17 Apr 2025 13:23:44 +0100 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFT][PATCH v1 1/8] cpufreq/sched: schedutil: Add helper for governor checks To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Lukasz Luba , Peter Zijlstra , Srinivas Pandruvada , Dietmar Eggemann , Morten Rasmussen , Vincent Guittot , Ricardo Neri , Pierre Gondois References: <3344336.aeNJFYEL58@rjwysocki.net> <10640940.nUPlyArG6x@rjwysocki.net> Content-Language: en-US From: Christian Loehle In-Reply-To: <10640940.nUPlyArG6x@rjwysocki.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/16/25 18:48, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Add a helper for checking if schedutil is the current governor for > a given cpufreq policy and use it in sched_is_eas_possible() to avoid > accessing cpufreq policy internals directly from there. > > No intentional functional impact. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Christian Loehle