Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 743D1C432BE for ; Tue, 24 Aug 2021 13:53:04 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3E1B761245 for ; Tue, 24 Aug 2021 13:53:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3E1B761245 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FF/OKlqHQdCjeAaQk7GrxS5jS1hc+ecFWEp8YLnjooc=; b=QGtdG+4D/l/Rhh +5sF7NUxjzPj7YnRNYcnBarOaer3k3q6mrwb6pgV0mz7ZdCs9fKMO/QKkdcJgz6+1+tgxflwJeynn 1ifN/iu1Fnotub1OMb7osUnlmrseieec9oYS4B+qMRobaWaIj3Z3HnS5YqyA2lgMoJNp7oTnl24+b LoBlVUxxyUSuD6PB3xpPCWMafH5byj/Bf2IPrY2IHiwcDPRF01Ju6r/uBOzbWRURWwaTQotO8a2vn 60bcP+JUyYsofc+urWssEaiDYVNY3bgKUbuaoYDxOVQg5DI9bznIkV5+e0Ccb+NuNv/xR7ozgwToW YIO6joUpiLuA8SvqRhRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIWp8-003J7a-E0; Tue, 24 Aug 2021 13:50:42 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIWny-003IhE-CI for linux-arm-kernel@lists.infradead.org; Tue, 24 Aug 2021 13:49:35 +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 D405B1042; Tue, 24 Aug 2021 06:49:26 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 157CE3F766; Tue, 24 Aug 2021 06:49:25 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org Cc: alexandru.elisei@arm.com, andre.przywara@arm.com, mark.rutland@arm.com, maz@kernel.org Subject: [boot-wrapper PATCH 5/5] Rename `CNTFRQ` -> `COUNTER_FREQ` Date: Tue, 24 Aug 2021 14:49:00 +0100 Message-Id: <20210824134900.34849-6-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210824134900.34849-1-mark.rutland@arm.com> References: <20210824134900.34849-1-mark.rutland@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210824_064930_541744_52306B4F X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. 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: , MIME-Version: 1.0 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 To avoid any confusuion between the CNTFRQ/CNTFRQ_EL0 register and the vallue it will be progrmamed with, rename the `CNTFRQ` constant to `COUNTER_FREQ. In future patches this will allow us to use `CNTFRQ` as a macro for the AArch32 CP15 register encoding. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland --- Makefile.am | 4 ++-- arch/aarch32/boot.S | 2 +- arch/aarch64/boot.S | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 3591d23..d0a68df 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,12 +13,12 @@ SCRIPT_DIR := $(top_srcdir)/scripts PHYS_OFFSET := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findmem.pl $(KERNEL_DTB)) UART_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,pl011') SYSREGS_BASE := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findbase.pl $(KERNEL_DTB) 0 'arm,vexpress-sysreg' 2> /dev/null) -CNTFRQ := 24000000 +COUNTER_FREQ := 24000000 CPU_IDS := $(shell perl -I $(SCRIPT_DIR) $(SCRIPT_DIR)/findcpuids.pl $(KERNEL_DTB)) NR_CPUS := $(shell echo $(CPU_IDS) | tr ',' ' ' | wc -w) -DEFINES = -DCNTFRQ=$(CNTFRQ) +DEFINES = -DCOUNTER_FREQ=$(COUNTER_FREQ) DEFINES += -DCPU_IDS=$(CPU_IDS) DEFINES += -DNR_CPUS=$(NR_CPUS) DEFINES += $(if $(SYSREGS_BASE), -DSYSREGS_BASE=$(SYSREGS_BASE), ) diff --git a/arch/aarch32/boot.S b/arch/aarch32/boot.S index 08bf932..4add338 100644 --- a/arch/aarch32/boot.S +++ b/arch/aarch32/boot.S @@ -54,7 +54,7 @@ _monitor: mov r0, #(1 << 10 | 1 << 11) @ Enable NS access to CPACR mcr p15, 0, r0, c1, c1, 2 @ NSACR - ldr r0, =CNTFRQ + ldr r0, =COUNTER_FREQ mcr p15, 0, r0, c14, c0, 0 @ CNTFRQ bl gic_secure_init diff --git a/arch/aarch64/boot.S b/arch/aarch64/boot.S index 587a25f..bfbb6ec 100644 --- a/arch/aarch64/boot.S +++ b/arch/aarch64/boot.S @@ -118,7 +118,7 @@ ASM_FUNC(_start) msr ZCR_EL3, x0 // for EL2. 1: - ldr x0, =CNTFRQ + ldr x0, =COUNTER_FREQ msr cntfrq_el0, x0 bl gic_secure_init -- 2.11.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel