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 27138C28CF5 for ; Wed, 26 Jan 2022 12:30:23 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=29ajobe4qSnRWG6V7ebgqBSAWJOmyy29ZMLxljH6K9s=; b=Q7zX3IZcaxDhniMGcYymTgZUwh 1deKA1gWqjEcZfDTN3I6+j6v8IoRD5//uQKmGJV2t/l/mvl+Ugi1MdHhUKY6nkP8WXqN0RP2IFLHH 9GDNUMcwxRU/tqaRLDWLLZNofNLtL7lKmOmMOAF6in8FdUsxNa1+6UpqdwMpQyb9BulnaJykc6IXG KpJc2vssQFaC+LTd/a6MiOjNtq74TlU02jAzZbo48/pDLmpLOm6jKqC8j0Mb/otS64YwKCA7ua40m HpduaTdIhG9weYZf4Vg7im0b7NYrGein8+GvK6l7N2DQzNyGcIyk+X5cpRwOVm/XJRHTisxcE4hjn iNLgpXQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nChQD-00BhlH-Tf; Wed, 26 Jan 2022 12:29:10 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nChQ9-00BhjL-99 for linux-arm-kernel@lists.infradead.org; Wed, 26 Jan 2022 12:29:06 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B6751B81CD8; Wed, 26 Jan 2022 12:29:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B78AC340E3; Wed, 26 Jan 2022 12:29:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643200142; bh=9EaamjmD9vwFtzb754Mi52eXxFzcSc0EN4SmOkuwgGU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MTOeXEL3N2P95u8T/bFZdMHIjmitx0MxOzCQlqZfEV/rpp+upRBh/SsVBx0dRbfWF TyIB9lPtBJNCzyP4ZaCV9VRx+WDN33irj7e5PWaOvpQsdNuVklU0zztKeigEHTeyFV bqKvbXOleFGWiLya93HwHE1WJyQNzqgoELbDX1gafSrKFMhCgmQqQyqSMZP+xQ+pis HFA0VNto8vc3kHTyfwbwtDTLJjnBBamf2tY1kZwi7xJ3rXnpWywHimEFj7eCBsb3lA tnPCbCbzTGD1KvqDHR0JPaFggZchR/+YjrWnHQLc1WWa+a1Y6zGHcHilOcOxeD+I5V v13FUGlvM6OLA== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nChQ4-003D2u-9y; Wed, 26 Jan 2022 12:29:00 +0000 MIME-Version: 1.0 Date: Wed, 26 Jan 2022 12:29:00 +0000 From: Marc Zyngier To: Robin Murphy Cc: Chao Liu , catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hewenliang4@huawei.com, zhoukang7@huawei.com Subject: Re: [PATCH v2] add cpu frequency to cpuinfo in arm64 In-Reply-To: References: <20220126092349.285642-1-liuchao173@huawei.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: robin.murphy@arm.com, liuchao173@huawei.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hewenliang4@huawei.com, zhoukang7@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220126_042905_505636_F03D1956 X-CRM114-Status: GOOD ( 12.14 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2022-01-26 12:05, Robin Murphy wrote: > On 2022-01-26 09:23, Chao Liu wrote: >> There is cpu frequency in /proc/cpuinfo in x86 but not in arm64 > > arm64 cpuinfo also doesn't show the APIC ID or microcode version. > Different architectures are different. > > Besides, x86 cpuinfo only shows MHz if the CPU has X86_FEATURE_TSC, so > for compatibility we should only do this on AArch64 CPUs which have > X86_FEATURE_TSC. /me prepares a patch to be sent in just over 2 months... M. -- Jazz is not dead. It just smells funny... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel