From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gentwo.org (gentwo.org [62.72.0.81]) (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 96FCBC2FF for ; Tue, 17 Feb 2026 17:19:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.72.0.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771348770; cv=none; b=Iix2MwUiQR+yUKYvwpxE8uj1RtKErm2QAVwp97qkTax6muLs3yDIIYvTX0ox9Q1og7MZozpcAvAf5byqPqLek8XE7RiMmnXgWsLZWmOAQ0DBgcxzvRpVL4haVNhGSuSZogS9BVA7nskUz+JY9jVgZNl2A4W9cSsKa4bToLP0Cn8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771348770; c=relaxed/simple; bh=iqvkO3d8pf0lSaPpz0YdQ9T5Ii+HCmRk3sj5lrZM12U=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=FRfzhRNgiKEwIJ3KoDk1l9CHkuWgFE8dvmtFjJxMQvSScaArorNuJuDTlTUKMaek3wOKofipD1YOEQmpWYpLpGt20cr9GZVe1IALBSohekRoF+NDDwxxQscFJe7s48Sym5MNNq2Q2IjNCfzonJinLJ/VU2UaAVs46nTgh8SMLu0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gentwo.org; spf=pass smtp.mailfrom=gentwo.org; dkim=pass (1024-bit key) header.d=gentwo.org header.i=@gentwo.org header.b=hGQrADKP; arc=none smtp.client-ip=62.72.0.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gentwo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentwo.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gentwo.org header.i=@gentwo.org header.b="hGQrADKP" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gentwo.org; s=default; t=1771348762; bh=iqvkO3d8pf0lSaPpz0YdQ9T5Ii+HCmRk3sj5lrZM12U=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=hGQrADKPIWiFzGofJtFWS3VD5op+SkWvFrgCBSDM+4x5bKFMAQhgHNu0wLhcjJOmX 9jnRpyJsGTG4PRoPWefEqa83g90G+mruAP4ug2OFNsx8KG4mvqy9Yu4dbOgwi1jMkY SmLxDxlkInH2D4cYmRmr3SYdqMlAdkkVSpPJYNWw= Received: by gentwo.org (Postfix, from userid 1003) id E70FD401B2; Tue, 17 Feb 2026 09:19:22 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id E5831400C8; Tue, 17 Feb 2026 09:19:22 -0800 (PST) Date: Tue, 17 Feb 2026 09:19:22 -0800 (PST) From: "Christoph Lameter (Ampere)" To: Dev Jain cc: Will Deacon , Jisheng Zhang , Catalin Marinas , Dennis Zhou , Tejun Heo , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, maz@kernel.org Subject: Re: [PATCH] arm64: remove HAVE_CMPXCHG_LOCAL In-Reply-To: <89606308-3c03-4dcf-a89d-479258b710e4@arm.com> Message-ID: <6d30176d-9673-287e-4658-a5e9e6e5d649@gentwo.org> References: <20260215033944.16374-1-jszhang@kernel.org> <89606308-3c03-4dcf-a89d-479258b710e4@arm.com> 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=US-ASCII On Mon, 16 Feb 2026, Dev Jain wrote: > By coincidence, Yang Shi has been discussing the this_cpu_* overhead > at [2]. Yang Shi is on vacation but we have a patchset that removes preempt_enable/disable from this_cpu operations on ARM64. The performance of cmpxchg varies by platform in use and with the kernel config. The measurements that I did 2 years ago indicated that the cmpxchg use with Ampere processors did not cause a regression. Note that distro kernels often do not enable PREEMPT_FULL and therefore preempt_disable/enable overhead is not incurred in production systems. PREEMPT_VOLUNTARY does not use preemption for this_cpu ops.