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 6FF29E77184 for ; Thu, 19 Dec 2024 11:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=t90xHskqUVBSv++euNNE3Tg4H9uyAQ8V9ZeW0J/mlPk=; b=Ga1Rg0/+TOwVrOZcyEhn+lcqWm kDRXK7znzYawzW6gAOEITzjROaJcA+QK/wKwJ6JVktmJOgu5wA1jRZ9rxcIrF9qRf5sLbG28wot+H LxhM651vxq3bXL1G/x+5HdE4jYPvCuqyD4GuXeAPA3M5WFniSbtqGZuw48ERjzr6sygyt5QkxFvML d58DshNNVyvIsfhavTlTwOMlOjGSB+d5mdn148/yYPC9yDr8suhS37vv3n8p3uTUpVQxh5tFWbiQh LDdpdJFjg+mBCLGdU5Pvw+0mnjoWgyGI6GUPHHRMvARemrbJs8cm6twdxgOuHw0jCLWuFzou1gJpe +OEYhYAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tOFBU-00000001jIB-1ma2; Thu, 19 Dec 2024 11:59:16 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tOFAN-00000001jA8-3ZwU for linux-arm-kernel@lists.infradead.org; Thu, 19 Dec 2024 11:58:08 +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 1B3C31480; Thu, 19 Dec 2024 03:58:33 -0800 (PST) Received: from arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 073D83F720; Thu, 19 Dec 2024 03:57:59 -0800 (PST) Date: Thu, 19 Dec 2024 12:57:07 +0100 From: Beata Michalska To: Viresh Kumar Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, ionela.voinescu@arm.com, sudeep.holla@arm.com, will@kernel.org, catalin.marinas@arm.com, rafael@kernel.org, sumitg@nvidia.com, yang@os.amperecomputing.com, vanshikonda@os.amperecomputing.com, lihuisong@huawei.com, zhanjie9@hisilicon.com, Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H . Peter Anvin" , Phil Auld , x86@kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v8 1/4] cpufreq: Introduce an optional cpuinfo_avg_freq sysfs entry Message-ID: References: <20241206135600.4083965-1-beata.michalska@arm.com> <20241206135600.4083965-2-beata.michalska@arm.com> <20241212065100.sjb7lrlmksbm2hdk@vireshk-i7> <20241217042726.isllh5bulpnwql7i@vireshk-i7> <20241218041127.khdwo3hzmywcwuh5@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241218041127.khdwo3hzmywcwuh5@vireshk-i7> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241219_035807_932801_3211EA7B X-CRM114-Status: GOOD ( 20.32 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Dec 18, 2024 at 09:41:27AM +0530, Viresh Kumar wrote: > On 17-12-24, 21:10, Beata Michalska wrote: > > On Tue, Dec 17, 2024 at 09:57:26AM +0530, Viresh Kumar wrote: > > > On 16-12-24, 23:15, Beata Michalska wrote: > > > > My bad as I must have misinterpreted that message. Although I am not entirely > > > > sure why this might be unacceptable as it is not such uncommon approach to use > > > > signed int space to cover both: expected positive value as well as potential > > > > error code case failure. > > > > > > This part is fine. The problem is with handling frequency here. Signed int can > > > capture up to 2 GHz of freq, where as unsigned int can capture up to 4 GHz and > > > so we would really like to keep it at 4 GHz.. > > Right, though the arch_freq_get_on_cpu operates on kHz values. > > Hmm.. Missed that. > > If you still want to keep it, make that change in a separate patch and > the new sysfs entry in a different one, so related people can easily > review. > Will do. Thank you for your feedback. Much appreciated. --- BR Beata > -- > viresh