Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp312357lqd; Wed, 24 Apr 2024 03:11:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHZDpi9aCgG674kZPWkKeFCQ2ebMlwMkCnoTZzKaPooP2g2bGVYqD7zpogEUrIPDXdUJnEMFh6xuCrqNSbxv1cuP/MC4SV9lWWAcVUzA== X-Google-Smtp-Source: AGHT+IFzKZbo1YvAM288dIHe8AtoZjAt9zHYkkvJDpnWILD+muuC4B/MkiTS11MfxetkWcAJ/7oT X-Received: by 2002:a05:6871:3201:b0:221:442d:254b with SMTP id mo1-20020a056871320100b00221442d254bmr1426974oac.26.1713953468406; Wed, 24 Apr 2024 03:11:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713953468; cv=pass; d=google.com; s=arc-20160816; b=No857/wmRWxUQ8M3+9vOTLE46Um9Rnp/rXgCwXz6mm9GJVTSm2vtf8QfHUaiqUKlby vjs9EnoEWcwFwX1pxLzbA7xEPsrtVHpWG61tMGhVMfuGAEZd4uvVLvNLNgxU5k/Gwx9D y6v1MRaP+meNCTyOLNCZ3UAGH9d02LrGgjJN6VzK03tzSHREbvE22oAyyTOx8Y3IwtUP VhN7XwUyfcBH6zt2AAYDPtm6eNt/XKrZ7mCsAo0n+6jp14L4q9l9F6cjdBu2KZhXA3NI jrG26ryrii8CH6c96JPi+4H542dn8jJcnXFsFuFFvPZyt4ivezGiNAcaigbvAZlD3u2D 3hBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=mpYLdxswfRinuIfUuHAJy334gxe5DEtnR6tvbyjiaBo=; fh=+/5HJcjkQUO5g45D1YNP26poVNY0Pf2R344/yGFqOB8=; b=MdeqCpWmnJggPjnajvzKCmi4LgTitJGehRarYJnk93Ls2IR0rmdnLmE3oCsTZmEQW8 sXDhYUa8aass0NI2WBuyMSeHxqcnjNBqTN006kGa3vrPzzFku6C4V7akI6E/VVg1mkvr NuekqD3jiWbCYLFd2djZ9lc40U7HT8Hpl3QeQKGiw9wHEZULm2MgrX81nu/ZVGwL+0kx jWOzPvLsgCxNDw30ezVRwHSPkqPcfiCDZwj+FvuVyNUJf1REYDSSyKJgiGdW7IW7Et0L iwD+LvnWjNxW/eaQKS6FA2hzc1AQDlry/cZZLIul1Yk5Dc7pz4/FMSiVFeDE+ycB97f2 kTyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cFQmGRIp; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-156693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156693-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c30-20020a631c5e000000b005cfbd190e58si10661699pgm.115.2024.04.24.03.11.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 03:11:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cFQmGRIp; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-156693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156693-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 791D8B21F97 for ; Wed, 24 Apr 2024 10:04:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15884159578; Wed, 24 Apr 2024 10:04:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cFQmGRIp"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="5Y+hEnB9" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D0C2158DCF; Wed, 24 Apr 2024 10:04:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713953080; cv=none; b=UPbzilYj1uUheU68xn2EH0oHI8K3qn5UHv9KA2oEg28QV6zc3v8wLzrsAydThrK8X/2fu52rBpbzEHQMnf/DwLB8lz9u5u3UCqAfK/urc7Tj0S9SSdDL/zmzZr+zFkL4pcnY7zXowAidwy0QJ58p15+2iGlDpory9A0XuugNdkw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713953080; c=relaxed/simple; bh=Pt+ikqjMihr41akyixDZQDvJ8C9xur0ISNFhUmtxRH4=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Yk7pS51gUO2jmeRNMT2CZadbp+zY0jDQh7FDbZIXzqZx51pl2fyOAwTFWthHZs04dwrQyDJnIb3wHUEzvQ9Q53EZDiloDmXd+YoOn+Y8JZzVxNxMS90877v+/rFild8afvXJZ44AhqhNVwcbtXKxUsOBX6f97F1HnylL6wPeIVQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=cFQmGRIp; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=5Y+hEnB9; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 24 Apr 2024 10:04:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1713953066; 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=mpYLdxswfRinuIfUuHAJy334gxe5DEtnR6tvbyjiaBo=; b=cFQmGRIpbiDhFYbQaCSc/vV2CGHuO/Hs/UL2kMu/UFu4eQvw4sDed0usahY9IOKdLDSQZ5 5qdHM6+gPl5TwxTRqiGA854IGUo9h73DQbEXLKGJparzRSH9WpE/ZUm48XOfZwJEbUsPIE L2ufx+j6b8zJnkXihzUb3DUn9yQcBzK9EbmPw7cL51Z7waT9m8znsAzWyqGvr6adXiB2Nh FVfOb6rhblUQfsugEtffPoZLA+x3o1lA1JFY/J0KPn6N7hfZcFo+zLBfPJyvwhrHxfCO+o qu2tn01Zd1xIc8NfLToPpu2ZRaZVwwXA5wi6Ri7T0X6Qi5dq6fGiPJZB8fdO3A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1713953066; 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=mpYLdxswfRinuIfUuHAJy334gxe5DEtnR6tvbyjiaBo=; b=5Y+hEnB963wosLsRS+xSgyshGKqTpEPeNJ9LSn14huxWL2ws6skJpt/w4WqvvYUPVO+zJJ ycVuOxM35hTpNpAQ== From: "tip-bot2 for Uros Bizjak" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] locking/pvqspinlock/x86: Use _Q_LOCKED_VAL in PV_UNLOCK_ASM macro Cc: Uros Bizjak , Ingo Molnar , Boqun Feng , Waiman Long , Linus Torvalds , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240422151752.53997-1-ubizjak@gmail.com> References: <20240422151752.53997-1-ubizjak@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171395306551.10875.10282096733098701784.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the locking/core branch of tip: Commit-ID: 532453e7aa78f3962fb4d86caf40ff81ebf62160 Gitweb: https://git.kernel.org/tip/532453e7aa78f3962fb4d86caf40ff81ebf62160 Author: Uros Bizjak AuthorDate: Mon, 22 Apr 2024 17:17:35 +02:00 Committer: Ingo Molnar CommitterDate: Wed, 24 Apr 2024 11:48:08 +02:00 locking/pvqspinlock/x86: Use _Q_LOCKED_VAL in PV_UNLOCK_ASM macro Use _Q_LOCKED_VAL instead of hardcoded $0x1 in PV_UNLOCK_ASM macro. No functional changes intended. Signed-off-by: Uros Bizjak Signed-off-by: Ingo Molnar Acked-by: Boqun Feng Cc: Waiman Long Cc: Linus Torvalds Link: https://lore.kernel.org/r/20240422151752.53997-1-ubizjak@gmail.com --- arch/x86/include/asm/qspinlock_paravirt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/qspinlock_paravirt.h b/arch/x86/include/asm/qspinlock_paravirt.h index 466af57..0a98578 100644 --- a/arch/x86/include/asm/qspinlock_paravirt.h +++ b/arch/x86/include/asm/qspinlock_paravirt.h @@ -40,7 +40,7 @@ __PV_CALLEE_SAVE_REGS_THUNK(__pv_queued_spin_unlock_slowpath, ".spinlock.text"); #define PV_UNLOCK_ASM \ FRAME_BEGIN \ "push %rdx\n\t" \ - "mov $0x1,%eax\n\t" \ + "mov $" __stringify(_Q_LOCKED_VAL) ",%eax\n\t" \ "xor %edx,%edx\n\t" \ LOCK_PREFIX "cmpxchg %dl,(%rdi)\n\t" \ "jne .slowpath\n\t" \