From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5F173C4345F for ; Thu, 18 Apr 2024 10:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DCVTC7/3E3Mg21Y6evEeheAwc20ENqCKW1K0soeYdmw=; b=fdIQmpu5y+aMw9 Th1F5iT58jKhQmitZvIf3j3+OjDh6s2We5Is0Gk+FwGQSIjrVDZvJEkwOuN9IUcxvGgoZSAf/ShuW rO60mKyMY98LnRifx8FTjNbhviZMruD99DIH2deJPQoK9ztNEMYi/UQ01iZw+vXH2TPUAIUH23Afi y91ZU3aqpFj55OcH1fdtl0b8Oh7gEH86p3bnQ6i1MSoKD5ghupPq18QV4D/IpKCKxBn+GpZ91patW 09vxVgkXVm08MB1B1E7Bd3LWfWtB+TMZUP8taXkVOFaiDoBrLxjZzNEehcQkdvsPlfB24KAmIkDiS 426XIKwFza1DgmZ53FdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxPLN-00000001rre-1X94; Thu, 18 Apr 2024 10:50:17 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxPLK-00000001rpV-1J3u for linux-arm-kernel@lists.infradead.org; Thu, 18 Apr 2024 10:50:15 +0000 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 1CFAF339; Thu, 18 Apr 2024 03:50:41 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 94EAC3F792; Thu, 18 Apr 2024 03:50:11 -0700 (PDT) Date: Thu, 18 Apr 2024 11:50:08 +0100 From: Sudeep Holla To: Beata Michalska Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ionela.voinescu@arm.com, vanshikonda@os.amperecomputing.com, will@kernel.org, catalin.marinas@arm.com, vincent.guittot@linaro.org, sumitg@nvidia.com, yang@os.amperecomputing.com, lihuisong@huawei.com, viresh.kumar@linaro.org Subject: Re: [PATCH v5 1/5] arch_topology: init capacity_freq_ref to 0 Message-ID: <20240418105008.auhtzjv47zrrud77@bogus> References: <20240417093848.1555462-1-beata.michalska@arm.com> <20240417093848.1555462-2-beata.michalska@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240417093848.1555462-2-beata.michalska@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240418_035014_441910_FD60767A X-CRM114-Status: GOOD ( 10.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Apr 17, 2024 at 10:38:44AM +0100, Beata Michalska wrote: > From: Ionela Voinescu > > It's useful to have capacity_freq_ref initialized to 0 for users of > arch_scale_freq_ref() to detect when capacity_freq_ref was not > yet set. > > The only scenario affected by this change in the init value is when a > cpufreq driver is never loaded. As a result, the only setter of a > cpu scale factor remains the call of topology_normalize_cpu_scale() > from parse_dt_topology(). There we cannot use the value 0 of > capacity_freq_ref so we have to compensate for its uninitialized state. > Reviewed-by: Sudeep Holla -- Regards, Sudeep _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel