Message ID | 168275178427.404.15587499708814984111.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1432622vqo; Sat, 29 Apr 2023 00:06:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fpK3P15UNP8u6b5XY3SXqdp5OyME6pFDdc2xvS6tYGPPn7MGBQJFrotNsICP/9JfJ3EC9 X-Received: by 2002:a05:6a00:1796:b0:640:defd:a6d5 with SMTP id s22-20020a056a00179600b00640defda6d5mr12293188pfg.12.1682751968563; Sat, 29 Apr 2023 00:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682751968; cv=none; d=google.com; s=arc-20160816; b=YXTM5iYvWi08bsELeu4tbfC/Bbj0z/l5c7wCb2p/s8S/Q7FsVZr6bt2TXdTq4NwCxc TgFDeIvWF0dy9zDxnqT4da2X7x1sXGy32hVjmA9wmMk1lJJxu7ZuDnwE4VHJ9/x9GvQO WPdVikiGI9E0iLh/SB5J3LtD/EAK90+2V8kA5XcuPyV2Y1ZhaeV2SvqPHKhojmvGxjnW frQVYLMb7FfLKGZETfQMHEHCZbqWCvRwrKlq2GAyaFNnBBzIPRSmPFbmbe5D4JMzD4Er 4jDy6iuZrTYVfa1E7RMS+F1hndfl6vQ3BH5tkWRkv6h/IPB962ZXtr3EEgVmm0y4zl/j qz/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=PHrZ9FO8myesvsT3+YKfiBq9ZFhahSfWgh6mv8erpNE=; b=XkLX/WxXMRVdLB1WOYzxRfu+rHbDr+t7/4TEmhcZhTK8wDAopMgMo2EVRVkz2jkC30 kqD4lEDpjCAonNkg59BzSWwju7VHmX+PANco1oOFo1gpsO9onFEgiHxFKFST1+zxis7L IAxXY+N7aG/oesN2jPLKmhRJKOprxHlc1jXG9/IjFy1mTvAsPlhmti1pMAhRdV8TzyNe 8nDMcuKD3BdD3Hc05nuyIu/olWRe66uNBF0hCSMkIy0HVxYgMuhn3nfwn0Td5O3zcUoW omipFdgcUI+LuNVKoUznObIYR0sPgeHDdOhTPNkziFFdfe+U3zXbb1NzzjeAbgZdtmi+ rvCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="0hadpFg/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=kVoQm8Ec; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x187-20020a6263c4000000b0063b8af69b09si22706765pfb.314.2023.04.29.00.05.54; Sat, 29 Apr 2023 00:06:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="0hadpFg/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=kVoQm8Ec; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231135AbjD2HDQ (ORCPT <rfc822;chrisjones.unixmen@gmail.com> + 99 others); Sat, 29 Apr 2023 03:03:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjD2HDK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 29 Apr 2023 03:03:10 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C76B2D46; Sat, 29 Apr 2023 00:03:07 -0700 (PDT) Date: Sat, 29 Apr 2023 07:03:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1682751784; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PHrZ9FO8myesvsT3+YKfiBq9ZFhahSfWgh6mv8erpNE=; b=0hadpFg/6/4frdgccVONIrIwdlvMXRIKC803WNmJvkcT6un3GqyWcaUsh4ZnAkYLQuBAyZ WgkqbDv+1kDfZsBT7TGMmXaM0pRYPEfXxjX11KXDL8Z2/+b5Np1hs+rJj6T3eUpkaRUHJK Y0IWsQ5ZLaV3dOvsaAPGtaaQNxUK6uleaNRNB2b9fTKTF/vOb5/Embcri3Uwk1Ko2W1Bxe arsemQWac5N+UwEwCYMN0aJz8E2rZa4og81usAO+MfHaYcACxMeYFKM/jTJsTvkwh0IJpV gGOjuILXTkh9yxdX6ZvB6WTe/dnq/hOZSKV+sEbq560HPNg8DfZFCIXkxI97vQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1682751784; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PHrZ9FO8myesvsT3+YKfiBq9ZFhahSfWgh6mv8erpNE=; b=kVoQm8EcR7ajOVRx+Pbwok/lUw1mOaSqBELR2Hx+D6vQ5l//SYrl4xgIwJt1gJxpDCNxnO 8ozeisQ4kvB4VvAw== From: "tip-bot2 for Uros Bizjak" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] locking/x86: Define arch_try_cmpxchg_local() Cc: Uros Bizjak <ubizjak@gmail.com>, "Peter Zijlstra (Intel)" <peterz@infradead.org>, Ingo Molnar <mingo@kernel.org>, Linus Torvalds <torvalds@linux-foundation.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230405141710.3551-5-ubizjak@gmail.com> References: <20230405141710.3551-5-ubizjak@gmail.com> MIME-Version: 1.0 Message-ID: <168275178427.404.15587499708814984111.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764493328374407191?= X-GMAIL-MSGID: =?utf-8?q?1764493328374407191?= |
Series |
[tip:,locking/core] locking/x86: Define arch_try_cmpxchg_local()
|
|
Commit Message
tip-bot2 for Thomas Gleixner
April 29, 2023, 7:03 a.m. UTC
The following commit has been merged into the locking/core branch of tip: Commit-ID: 1ab70804ef3f829c5a738cba8627f0a0c2486d2b Gitweb: https://git.kernel.org/tip/1ab70804ef3f829c5a738cba8627f0a0c2486d2b Author: Uros Bizjak <ubizjak@gmail.com> AuthorDate: Wed, 05 Apr 2023 16:17:09 +02:00 Committer: Ingo Molnar <mingo@kernel.org> CommitterDate: Sat, 29 Apr 2023 08:52:44 +02:00 locking/x86: Define arch_try_cmpxchg_local() Define target specific arch_try_cmpxchg_local(). This definition overrides the generic arch_try_cmpxchg_local() fallback definition and enables target-specific implementation of try_cmpxchg_local(). Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20230405141710.3551-5-ubizjak@gmail.com Cc: Linus Torvalds <torvalds@linux-foundation.org> --- arch/x86/include/asm/cmpxchg.h | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/arch/x86/include/asm/cmpxchg.h b/arch/x86/include/asm/cmpxchg.h index 94fbe6a..540573f 100644 --- a/arch/x86/include/asm/cmpxchg.h +++ b/arch/x86/include/asm/cmpxchg.h @@ -221,9 +221,15 @@ extern void __add_wrong_size(void) #define __try_cmpxchg(ptr, pold, new, size) \ __raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX) +#define __try_cmpxchg_local(ptr, pold, new, size) \ + __raw_try_cmpxchg((ptr), (pold), (new), (size), "") + #define arch_try_cmpxchg(ptr, pold, new) \ __try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr))) +#define arch_try_cmpxchg_local(ptr, pold, new) \ + __try_cmpxchg_local((ptr), (pold), (new), sizeof(*(ptr))) + /* * xadd() adds "inc" to "*ptr" and atomically returns the previous * value of "*ptr".