Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1848706ybg; Thu, 4 Jun 2020 22:19:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIjXpqyQKaSVOt4FnYLTaYnErJ8sNi8dHtWiOaX58rDA/qge+FkOIDA8teVyrfINP9JWD2 X-Received: by 2002:aa7:c607:: with SMTP id h7mr7768048edq.214.1591334390621; Thu, 04 Jun 2020 22:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591334390; cv=none; d=google.com; s=arc-20160816; b=eFTkYvml+QxtynmkXUCri7YEwFRzbRgNnZ+vu4/SyQvaEdgaJeRfyOXKANUXKtokqY n6h5TiSvk/9L9x9gEPgnlauugHnrcXsJPuf27vlH5V9bw2ayBYz6n2XcIaFHgMJBtDp/ 14c0RK3VtPd2pwt+pR9eFqtGIFYa8O7foXcCmbMuWROkk9cjZuj/0s3g8u7AFEvd2sLV KFI01vpeYsvOJj/2DcuHGoOyio9Q5TkhL5cx9XpmSc9h2UxmCOrTGRGAQ76ud76Y7B0+ 3pF2e3NAe8kPLDhQRinBm99Cr3BEv91NQ/6jApx3t/Ove9C/E/ZL4dMe7a9xwtm1B/km 64sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UZ/9MU32j84dkDwAJ0kpI/1OK7iKb6ILv4tynni/7lc=; b=dvOmAMN9zvrGNpoyeP8WwwQI5TDpMt+g1QAicqtR2aQdn/6AZqDdhiPpt7wrMOaAU1 wIVL+fQaA8vP0eCnLit8x8sgxLkJUTqBSIdZEGeI4aa/50DvkMGsEa1083RE+Bkh9lHq TOc83pSeNB2pp4MH7Zb64pkF1tJh2C1zOUsS2MS6k5WCe4B3DLpiLfu4D659J0sTFKJg 8ocq9x27krKzZehZtMQJPfVnuLvMahgRTmzihEeMd2flyiCAE4c2IJcmO3ZvC2MWTaZm eV7htokWV2q2j9vjx9tfnOREfKGH/n0qld/6Mj/tEhbb9M9rdZ5nkWd0gPfEbmVYZmEs ebcg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si2754801edw.362.2020.06.04.22.19.27; Thu, 04 Jun 2020 22:19:50 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726069AbgFEFPV (ORCPT + 99 others); Fri, 5 Jun 2020 01:15:21 -0400 Received: from out28-2.mail.aliyun.com ([115.124.28.2]:42184 "EHLO out28-2.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726026AbgFEFPU (ORCPT ); Fri, 5 Jun 2020 01:15:20 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.4216212|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0499898-0.00367699-0.946333;FP=3314605746006315246|2|2|6|0|-1|-1|-1;HT=e01a16378;MF=maochenxi@eswin.com;NM=1;PH=DS;RN=6;RT=6;SR=0;TI=SMTPD_---.HiPnlBB_1591334112; Received: from localhost.localdomain(mailfrom:maochenxi@eswin.com fp:SMTPD_---.HiPnlBB_1591334112) by smtp.aliyun-inc.com(10.194.97.171); Fri, 05 Jun 2020 13:15:16 +0800 From: Chenxi Mao To: paul.walmsley@sifive.com Cc: palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, maochenxi@eswin.com Subject: [PATCH v2 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default Date: Fri, 5 Jun 2020 13:15:10 +0800 Message-Id: <20200605051510.51590-1-maochenxi@eswin.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Select ARCH_SUPPORTS_ATOMIC_RMW by default to enabel osqlocks. PS2: Add signed off info. Signed-off-by: Chenxi Mao --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a31e1a41913a..cbdc605d20d9 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -68,6 +68,7 @@ config RISCV select ARCH_HAS_GCOV_PROFILE_ALL select HAVE_COPY_THREAD_TLS select HAVE_ARCH_KASAN if MMU && 64BIT + select ARCH_SUPPORTS_ATOMIC_RMW config ARCH_MMAP_RND_BITS_MIN default 18 if 64BIT -- 2.25.1