From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8ECEE38757A for ; Fri, 5 Jun 2026 16:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780677799; cv=none; b=dbZBJQ7n3BI5rNiuMo10CZmnAS4b96luzom8ck0tfH8d7Pwxtsf4O/uJ4GVJUXQP6qgiLxPqTylcat7S4Q32t4msC+1zwmL/KmLTAhgK9hYuCNlbBCVjNob7JV0MAHlNtopZFS+nGhtZFAGj7GEA/hKS4Pd63nk3FLs9/T4tczc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780677799; c=relaxed/simple; bh=v5ANZyGdJq+mhJuXIZomjRsze8QnYkfcUC4MwGlsZBc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=gIgAmXZGVHHPbPKzrJmKSujVRZhWhUNOay93aQV7HYBhftlkSublNcjH77HfEowcHmS11F8cXorsG60nTtxF2fXU+HRgFkJ7OSN9DQKS/RZh4gjgzogHT4q39HecYLIc41IDQP0IHTXtzI0MCszl4OQVdAoECCKeQzESaPa2CM4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b6iK9LYr; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b6iK9LYr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 269DD1F00899; Fri, 5 Jun 2026 16:43:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780677797; bh=oAXBZW5d5jXNJnm6Pa8041wFx7pArTYcV483iwZEXh4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=b6iK9LYrhNjBSxXb+v3te+vQuSblTi0Rveg6gygWIBpXGiFPn4gV6WMKWe3HL+0yK NfHg+9MQWRIbnsVS0+4lEqiDU8bU09RN0jhviQDENOu7OOBs0Qe6OW4BaRJ4cSgVGE Imiwcd8aGo+mGpGEnbTXeqwqXcSxvmXx2PaB1FIGF+i03JdqnZmM5gGvHUAyTTJnAt a+6xuwlRKI+W/Fsqs7paZFZQ/yLen300C52EAXk5tVE6iADf6R/Kjng6kAhRzvYgQp AHWCPHVa7ghVJxr7v4D982JUjKXlF+KPC4HJ/QxChOvuulV80anj63EipBY6nBvNOq CIeBXqxwQFI+Q== From: Will Deacon To: Mark Rutland , Marc Zyngier , Catalin Marinas , Breno Leitao Cc: kernel-team@android.com, Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH] arm64: arch_timer: reuse arch_timer_read_cnt{p,v}ct_el0() helpers Date: Fri, 5 Jun 2026 17:43:04 +0100 Message-ID: <178065748094.2118608.15288564842969855420.b4-ty@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260523-arch64_fix-v1-1-283bd4b73d49@debian.org> References: <20260523-arch64_fix-v1-1-283bd4b73d49@debian.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Sat, 23 May 2026 12:59:26 -0400, Breno Leitao wrote: > __arch_counter_get_cntpct() and __arch_counter_get_cntvct() open-code > the same ECV-aware ALTERNATIVE block that arch_timer_read_cntpct_el0() > and arch_timer_read_cntvct_el0() already provide in the same header. > The two pairs are byte-for-byte identical except for the trailing > arch_counter_enforce_ordering() the __arch_counter_get_* variants add. > > Replace the duplicated inline assembly in __arch_counter_get_cntpct() > and __arch_counter_get_cntvct() with calls to the corresponding helpers. > This mirrors commit 00b39d150986 ("arm64: vdso: Use > __arch_counter_get_cntvct()"), which removed similar duplication from > the vDSO, and keeps the system-counter read sequence in a single place, > reducing assembly code in the kernell > > [...] Applied to arm64 (for-next/misc), thanks! [1/1] arm64: arch_timer: reuse arch_timer_read_cnt{p,v}ct_el0() helpers https://git.kernel.org/arm64/c/11c33ffb3a4e Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev