From patchwork Fri May 19 16:47:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaxun Yang X-Patchwork-Id: 13248569 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9834C77B7A for ; Fri, 19 May 2023 16:48:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231361AbjESQs4 (ORCPT ); Fri, 19 May 2023 12:48:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbjESQsr (ORCPT ); Fri, 19 May 2023 12:48:47 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A80DCB6; Fri, 19 May 2023 09:48:18 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 883383200979; Fri, 19 May 2023 12:48:17 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 19 May 2023 12:48:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1684514897; x= 1684601297; bh=ER5O497djZCDIkmyCNXXy/HSN/ue8KW99etXc+TOCfI=; b=a EWNFzt2I7sbRhFmICxYITPUfPLgKFg7zscKjDun7r6vn2ffLLBkT/Bg/YW/3LGNa ATAKsFUtkj/s2dUzQzSms//c8Sce9kSk8xEGdXfAP44yZaP8jO0s3fw8s7KexIka U1BKOiIrtAND2UcnYcvxxll19Ol1NkESkDlxwAhnosXZS068EBHNhBYFaiAc2fYg 3+5czIvsQ8AXdavWQ72RXrLGJWjwV3cfk8ved0ShuxfssaCEgNaw+KZiYFBiUMdW Nigur28z5UKeTCDe5z6oLlY5Gxcp7dpaAJbUnpFBNXjda2DtS7KBNRcg+yMdJKfv iiBkjB/BZiIlmaQ/fTWDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1684514897; x= 1684601297; bh=ER5O497djZCDIkmyCNXXy/HSN/ue8KW99etXc+TOCfI=; b=g JNcNTpiHwKMfVE2Gbv5a+qt4PNnq0StVViX5qFTV3FNezsQvLSeipYPs5hmy9m0W pIKQge7rrqmYHG8w3AydIGj6K++zz53963VadSt6S83HmqAdyDkYou8mL6OeRIoO FJ6uO47rZgBXkLKe1jxKZzpJEZNT2iN22t1o8ddQm9bsABI8KvDAjnQZMNqJhVaP URtZLcQwFTNdIpanqOMaj7ai8mK4M0O/eGZdwFbqAZlOZ7pAlxPMFlX9H0zfA48d qnWJZ/oL/aoLtRfylLQf8fo9P7oCqU33tRk0BCv1mYwqxL93kW5rul+uo7eDmuvF OwY/PqMzP9f0uua0nZg8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeihedguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgjfhgggfestd ekredtredttdenucfhrhhomheplfhirgiguhhnucgjrghnghcuoehjihgrgihunhdrhigr nhhgsehflhihghhorghtrdgtohhmqeenucggtffrrghtthgvrhhnpeefledufeehgedvue dvvdegkefgvddttedtleeiiefhgeetudegkefhvdfhjeeftdenucevlhhushhtvghrufhi iigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehjihgrgihunhdrhigrnhhgsehflh ihghhorghtrdgtohhm X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 19 May 2023 12:48:16 -0400 (EDT) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org, tsbogend@alpha.franken.de, Jiaxun Yang Subject: [PATCH 3/3] MIPS: Select ARCH_SUPPORTS_ATOMIC_RMW when possible Date: Fri, 19 May 2023 17:47:53 +0100 Message-Id: <20230519164753.72065-4-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20230519164753.72065-1-jiaxun.yang@flygoat.com> References: <20230519164753.72065-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Select ARCH_SUPPORTS_ATOMIC_RMW when we are certain that our CPU have LLSC support. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 85728e4703bd..5f52bdecb4c9 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -21,6 +21,7 @@ config MIPS select ARCH_USE_MEMTEST select ARCH_USE_QUEUED_RWLOCKS select ARCH_USE_QUEUED_SPINLOCKS + select ARCH_SUPPORTS_ATOMIC_RMW if CPU_HAS_LLSC select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU select ARCH_WANT_IPC_PARSE_VERSION