Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1798591ybg; Thu, 4 Jun 2020 20:36:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRjYAko8mgfE7KUbAgViHQ715uuhhlPFvmDdfSUDH01zzquB6fYW8OrQEGt6D3rP/z4t5K X-Received: by 2002:aa7:df96:: with SMTP id b22mr7473030edy.348.1591328188448; Thu, 04 Jun 2020 20:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591328188; cv=none; d=google.com; s=arc-20160816; b=TUyZsqkZsYdsmyHNTdJ1Zq2qfPPIYF/BMtukQxrvTr2AAA42kIfETob0puro2133i/ xg0JKs89KCXR14bBJApb2ptlWdF1xFQURNVLkSRTRkl/zu5W646NA8bXKgGydWtwhaxI r4Krd+h7lmzOJeImEE5Qh7VrueLk4N11UfTqFF2Dy5XXRGcHFvxRLdLeFh+np428wQuw SyHY9ejiaPKJD7DYqgjCsj9D860KVm1Bt/BsugTMdIQ7tqYEMfxq1Z0Qcj4hVLBdvCak G8alY0mfIcNFUOKGgWiXufqRI7ez2xfbeqYrD/79jIYwS8fDsjNAbsMCNkRNx5MVCcX8 Tfmw== 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=mFX/9J1pmc4LrM+hRGMhq2Oh5MuuUkkccNV9LV/+xUAKKup5jCK7G17p+I3iuTuaC1 4vO947Kv2Zw/xiqcFKJwNJuM3ewPr8RlgYJSDRtoxaOY+0SuoH/309KZtA2jLQF9qkHr mL+zXC6c5X4gtwZWOUJ5fOZC47tnh5F7bgiXwgczTdBf61EZa+3U16DHjGvTvm1cZ6Qb hV3Y2E1cLL/Ls6SWQ2l05srZLzSbaM8nD/ojQ+4nE81aXd3C5tHoI2LSswj15ZTfkLqM rZGwOBRyZN8PslHyW0xfan8+Hr2GdjZ4xpQQCsOeo4EJQ99naUvmdg3c8BFCCPgBATv1 t7Vg== 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 gl17si2671234ejb.336.2020.06.04.20.36.03; Thu, 04 Jun 2020 20:36:28 -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 S1728226AbgFEDeY (ORCPT + 99 others); Thu, 4 Jun 2020 23:34:24 -0400 Received: from out28-53.mail.aliyun.com ([115.124.28.53]:47881 "EHLO out28-53.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728216AbgFEDeX (ORCPT ); Thu, 4 Jun 2020 23:34:23 -0400 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.4069149|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0499898-0.00367699-0.946333;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03294;MF=maochenxi@eswin.com;NM=1;PH=DS;RN=6;RT=6;SR=0;TI=SMTPD_---.HiN1LfG_1591328056; Received: from localhost.localdomain(mailfrom:maochenxi@eswin.com fp:SMTPD_---.HiN1LfG_1591328056) by smtp.aliyun-inc.com(10.194.98.253); Fri, 05 Jun 2020 11:34:21 +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 1/1] riscv: Select ARCH_SUPPORTS_ATOMIC_RMW by default Date: Fri, 5 Jun 2020 11:34:14 +0800 Message-Id: <20200605033414.10383-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