Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2428157pxj; Mon, 10 May 2021 02:43:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBr3M2DReE/vjxgPi1Yx3Uikw61sjjW6ApFumr0UN7rAn8Tw2l3rSpy+2ydhdgQtTfI7Gz X-Received: by 2002:a6b:5a16:: with SMTP id o22mr17743367iob.63.1620639827767; Mon, 10 May 2021 02:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620639827; cv=none; d=google.com; s=arc-20160816; b=sc90DNIBGeIbbX4mHER229Aoy+fHfLRVC7RKSZJDDIqmVto+J6WNWE9x3SJRVWBJ3u EwpLZbyEtXpOScqgkNrh7Vnykz3YrS8sQ32JJ3b3EfYLjktpwEq3nIBfiHXb8Wo9VpNr O3giYwQ4DJTAuhKZ9FD8hHOmgSBBa9/5MhlkiOBxv/psbPHGmya2pMqZ+PHOx6IbuLZu FAlnFEewi4f8Vv7X+qwobjKhS5ndzA5SQmh8F72i6xZymXWWH/6Zfx0yqwo8xhEP4ZsB TEnMTzGkZw7Qa/9DAIvlRdKZiJ4yCDtadURFA2szVckuaaVgteqspjrYEMgLZg1crTSO TNgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=NzzIG3te5ebBGpUOUqQtaofgKN4/Ek4LnprFgifDXy0=; b=Dq2y/3K9E/ozxp/aYKyjgUWaXpZl6+B9s0jBKIge8OLpD19wFxaUi3LaL3yAFL9uTJ 4NmjaAIV6IPzhBqi3ZX1Zfmkt9SBuq/uTyVO7UNMjoXCZp+jPzvgwt3OUxYeVUT4eUzz 0PcLoWEyWzy4yibe63XWvYPXuwEkHjxYzwXnYIJxfXZLwP/SIB9adQDXAiZZ9qPDbIwx A1tc6pU3CDaj4BnStNiDPQNywdHp1uKvAtUn7iEgHp/k8LzE+jTdfe5I0cO/w/cIs1Ar F3UdbsJiVKHR1Eu9QSnFDPCTsGuRZsYF2YDYmCPgM12463Ncw+EY9c1O0t58QFprJVjK /5gg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si14874881ioa.96.2021.05.10.02.43.35; Mon, 10 May 2021 02:43:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbhEJJoK (ORCPT + 99 others); Mon, 10 May 2021 05:44:10 -0400 Received: from foss.arm.com ([217.140.110.172]:51908 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230137AbhEJJoI (ORCPT ); Mon, 10 May 2021 05:44:08 -0400 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 C57E715AD; Mon, 10 May 2021 02:43:03 -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 93D133F73B; Mon, 10 May 2021 02:42:59 -0700 (PDT) From: Mark Rutland To: linux-kernel@vger.kernel.org, will@kernel.org, boqun.feng@gmail.com, peterz@infradead.org Cc: aou@eecs.berkeley.edu, arnd@arndb.de, bcain@codeaurora.org, benh@kernel.crashing.org, chris@zankel.net, dalias@libc.org, davem@davemloft.net, deanbo422@gmail.com, deller@gmx.de, geert@linux-m68k.org, green.hu@gmail.com, guoren@kernel.org, ink@jurassic.park.msu.ru, James.Bottomley@HansenPartnership.com, jcmvbkbc@gmail.com, jonas@southpole.se, ley.foon.tan@intel.com, linux@armlinux.org.uk, mark.rutland@arm.com, mattst88@gmail.com, monstr@monstr.eu, mpe@ellerman.id.au, nickhu@andestech.com, palmer@dabbelt.com, paulus@samba.org, paul.walmsley@sifive.com, rth@twiddle.net, shorne@gmail.com, stefan.kristiansson@saunalahti.fi, tsbogend@alpha.franken.de, vgupta@synopsys.com, ysato@users.sourceforge.jp Subject: [PATCH 24/33] locking/atomic: nios2: move to ARCH_ATOMIC Date: Mon, 10 May 2021 10:37:44 +0100 Message-Id: <20210510093753.40683-25-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210510093753.40683-1-mark.rutland@arm.com> References: <20210510093753.40683-1-mark.rutland@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We'd like all architectures to convert to ARCH_ATOMIC, as once all architectures are converted it will be possible to make significant cleanups to the atomics headers, and this will make it much easier to generically enable atomic functionality (e.g. debug logic in the instrumented wrappers). As a step towards that, this patch migrates nios2 to ARCH_ATOMIC, using the asm-generic implementations. Signed-off-by: Mark Rutland Cc: Boqun Feng Cc: Ley Foon Tan Cc: Peter Zijlstra Cc: Will Deacon --- arch/nios2/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index c24955c81c92..67dae88c5b53 100644 --- a/arch/nios2/Kconfig +++ b/arch/nios2/Kconfig @@ -2,6 +2,7 @@ config NIOS2 def_bool y select ARCH_32BIT_OFF_T + select ARCH_ATOMIC select ARCH_HAS_DMA_PREP_COHERENT select ARCH_HAS_SYNC_DMA_FOR_CPU select ARCH_HAS_SYNC_DMA_FOR_DEVICE -- 2.11.0